aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJaime Garcia Jr <[email protected]>2020-07-24 09:18:42 -0500
committerJaime Garcia Jr <[email protected]>2020-07-24 09:18:42 -0500
commit1c3b0c02f8f0129162d31554b6e5d58ca6b00782 (patch)
tree6e4df41362c0b971837776369eb9b37d177fd853
parentAdd documentation on bot_check_once (diff)
downloaddiscord.py-1c3b0c02f8f0129162d31554b6e5d58ca6b00782.tar.xz
discord.py-1c3b0c02f8f0129162d31554b6e5d58ca6b00782.zip
Add revisions to check_once docs
-rw-r--r--discord/ext/commands/bot.py6
-rw-r--r--discord/ext/commands/cog.py4
2 files changed, 6 insertions, 4 deletions
diff --git a/discord/ext/commands/bot.py b/discord/ext/commands/bot.py
index 724ab7cb..c858ab6a 100644
--- a/discord/ext/commands/bot.py
+++ b/discord/ext/commands/bot.py
@@ -257,6 +257,12 @@ class BotBase(GroupMixin):
.. note::
+ When using this function the :class:`.Context` sent to a group subcommand
+ may only parse the parent command and not the subcommands due to it
+ being invoked once per :meth:`.Bot.invoke` call.
+
+ .. note::
+
This function can either be a regular function or a coroutine.
Similar to a command :func:`.check`\, this takes a single parameter
diff --git a/discord/ext/commands/cog.py b/discord/ext/commands/cog.py
index a36e3f1d..b8e25917 100644
--- a/discord/ext/commands/cog.py
+++ b/discord/ext/commands/cog.py
@@ -296,10 +296,6 @@ class Cog(metaclass=CogMeta):
"""A special method that registers as a :meth:`.Bot.check_once`
check.
- Note that when using this function, context sent from a group command
- may only parse the parent command and not the subcommands due to it
- being invoked once per :meth:`.Command.invoke` call.
-
This function **can** be a coroutine and must take a sole parameter,
``ctx``, to represent the :class:`.Context`.
"""