mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-12-07 09:52:30 -05:00
Add [p]diagnoseissues command (#5243)
* Split `Requires._transition_state` into reusable methods for Diagnoser * (style) Fix line length * Add missing .format() * Add handling for user permissions, privilege level, Permissions rules * Add missing awaits, use correct method in user perms check, add 'the' * Fix .format() fields * Add comment * Add new file to labeler's configuration * Add the command to the documentation * All the work from DiagnoserCog You can find the commit history of it here: https://github.com/jack1142/DiagnoserCog * Fix circular import * Make channel argument optional * Add a tip about channels from different servers
This commit is contained in:
@@ -770,6 +770,33 @@ This is limited to one message every 60 seconds per person.
|
||||
**Arguments:**
|
||||
- ``[message]`` - The message to send to the owner.
|
||||
|
||||
.. _core-command-diagnoseissues:
|
||||
|
||||
^^^^^^^^^^^^^^
|
||||
diagnoseissues
|
||||
^^^^^^^^^^^^^^
|
||||
|
||||
**Syntax**
|
||||
|
||||
.. code-block:: none
|
||||
|
||||
[p]diagnoseissues [channel] <member> <command_name>
|
||||
|
||||
**Description**
|
||||
|
||||
Diagnose issues with the command checks with ease!
|
||||
|
||||
If you want to diagnose the command from a text channel in a different server,
|
||||
you can do so by using the command in DMs.
|
||||
|
||||
**Example:**
|
||||
- ``[p]diagnoseissues #general @Slime ban`` - Diagnose why @Slime can't use ``[p]ban`` in #general channel.
|
||||
|
||||
**Arguments:**
|
||||
- ``[channel]`` - The text channel that the command should be tested for. Defaults to the current channel.
|
||||
- ``<member>`` - The member that should be considered as the command caller.
|
||||
- ``<command_name>`` - The name of the command to test.
|
||||
|
||||
.. _core-command-dm:
|
||||
|
||||
^^
|
||||
|
||||
Reference in New Issue
Block a user