diff options
| author | Rapptz <[email protected]> | 2020-01-06 04:02:56 -0500 |
|---|---|---|
| committer | Rapptz <[email protected]> | 2020-01-06 04:02:56 -0500 |
| commit | 51546dbdb6309bd69809444519ce32057f47dfce (patch) | |
| tree | 4b39c21d4256618fa9f3a26b2ffcbd744d281b50 | |
| parent | Fix Member.mentioned_in returning True if in separate guilds (diff) | |
| download | discord.py-51546dbdb6309bd69809444519ce32057f47dfce.tar.xz discord.py-51546dbdb6309bd69809444519ce32057f47dfce.zip | |
[commands] Document the changed Command.can_run behaviour
| -rw-r--r-- | discord/ext/commands/core.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/discord/ext/commands/core.py b/discord/ext/commands/core.py index 20930408..f29ada94 100644 --- a/discord/ext/commands/core.py +++ b/discord/ext/commands/core.py @@ -926,7 +926,11 @@ class Command(_BaseCommand): """|coro| Checks if the command can be executed by checking all the predicates - inside the :attr:`.checks` attribute. + inside the :attr:`.checks` attribute. This also checks whether the + command is disabled. + + .. versionchanged:: 1.3 + Checks whether the command is disabled or not Parameters ----------- |