aboutsummaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorRapptz <[email protected]>2017-06-20 23:55:17 -0400
committerRapptz <[email protected]>2017-06-20 23:55:17 -0400
commitc23ef9e8a4c97fc6272b7a62c446b1f12130bdc9 (patch)
tree7aca1e54071e5f9cf9c2b46df184c72bd5611516 /docs
parent[commands] Add Bot.check_once for a global check that is called once. (diff)
downloaddiscord.py-c23ef9e8a4c97fc6272b7a62c446b1f12130bdc9.tar.xz
discord.py-c23ef9e8a4c97fc6272b7a62c446b1f12130bdc9.zip
[commands] Add __global_check_once to list of cog functions.
Diffstat (limited to 'docs')
-rw-r--r--docs/migrating.rst4
1 files changed, 4 insertions, 0 deletions
diff --git a/docs/migrating.rst b/docs/migrating.rst
index fbcc074a..7392844e 100644
--- a/docs/migrating.rst
+++ b/docs/migrating.rst
@@ -937,6 +937,10 @@ An example cog with every special method registered is as follows: ::
print('cog global check')
return True
+ def __global_check_once(self, ctx):
+ print('cog global check once')
+ return True
+
async def __local_check(self, ctx):
print('cog local check')
return await ctx.bot.is_owner(ctx.author)