mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-04-19 15:36:02 +00:00
Add documentation on bot_check_once
This commit is contained in:
parent
2628949cda
commit
5813593d6e
@ -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`.
|
||||
"""
|
||||
|
Loading…
x
Reference in New Issue
Block a user