aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJaime Garcia Jr <[email protected]>2020-07-23 12:19:10 -0500
committerJaime Garcia Jr <[email protected]>2020-07-23 12:19:10 -0500
commit5813593d6ee12861f6589620351a741ae51ca544 (patch)
tree3957246782ec139d3573069b3ad748d92414adaf
parentAdd a changelog entry for v1.3.4 (diff)
downloaddiscord.py-5813593d6ee12861f6589620351a741ae51ca544.tar.xz
discord.py-5813593d6ee12861f6589620351a741ae51ca544.zip
Add documentation on bot_check_once
-rw-r--r--discord/ext/commands/cog.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/discord/ext/commands/cog.py b/discord/ext/commands/cog.py
index b8e25917..a36e3f1d 100644
--- a/discord/ext/commands/cog.py
+++ b/discord/ext/commands/cog.py
@@ -296,6 +296,10 @@ 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`.
"""