mirror of
https://github.com/Rapptz/discord.py.git
synced 2026-11-20 13:29:03 +00:00
[commands] Add __global_check_once to list of cog functions.
This commit is contained in:
1 parent
717f11d635
commit
c23ef9e8a4
2 files changed
+8
No files matched your search
@@ -119,6 +119,10 @@ cog_extras = '''
|
||||
# checks that apply to every command to the bot
|
||||
return True
|
||||
|
||||
async def __global_check_once(self, ctx):
|
||||
# check that apply to every command but is guaranteed to be called only once
|
||||
return True
|
||||
|
||||
async def __error(self, ctx, error):
|
||||
# error handling to every command in here
|
||||
pass
|
||||
|
||||
Reference in new issue
Block a user