diff options
| author | Rapptz <[email protected]> | 2017-07-08 00:27:11 -0400 |
|---|---|---|
| committer | Rapptz <[email protected]> | 2017-07-08 00:28:23 -0400 |
| commit | 2f97678a79652e7d00118e6843feda3885795675 (patch) | |
| tree | 1f983214568aad5c605c44d203d9dedee5b05445 /discord/ext/commands/bot.py | |
| parent | Fixed broken code (diff) | |
| download | discord.py-2f97678a79652e7d00118e6843feda3885795675.tar.xz discord.py-2f97678a79652e7d00118e6843feda3885795675.zip | |
First pass at commands narrative documentation.
Diffstat (limited to 'discord/ext/commands/bot.py')
| -rw-r--r-- | discord/ext/commands/bot.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/discord/ext/commands/bot.py b/discord/ext/commands/bot.py index 34ab30e2..893719a1 100644 --- a/discord/ext/commands/bot.py +++ b/discord/ext/commands/bot.py @@ -276,7 +276,7 @@ class BotBase(GroupMixin): The function that was used as a global check. call_once: bool If the function should only be called once per - :meth:`.invoke` call. + :meth:`.Command.invoke` call. """ if call_once: @@ -308,7 +308,7 @@ class BotBase(GroupMixin): """A decorator that adds a "call once" global check to the bot. Unlike regular global checks, this one is called only once - per :meth:`.invoke` call. + per :meth:`.Command.invoke` call. Regular global checks are called whenever a command is called or :meth:`.Command.can_run` is called. This type of check |