diff options
| author | Jaime Garcia Jr <[email protected]> | 2020-07-23 12:19:10 -0500 |
|---|---|---|
| committer | Jaime Garcia Jr <[email protected]> | 2020-07-23 12:19:10 -0500 |
| commit | 5813593d6ee12861f6589620351a741ae51ca544 (patch) | |
| tree | 3957246782ec139d3573069b3ad748d92414adaf | |
| parent | Add a changelog entry for v1.3.4 (diff) | |
| download | discord.py-5813593d6ee12861f6589620351a741ae51ca544.tar.xz discord.py-5813593d6ee12861f6589620351a741ae51ca544.zip | |
Add documentation on bot_check_once
| -rw-r--r-- | discord/ext/commands/cog.py | 4 |
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`. """ |