aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorapple502j <[email protected]>2020-01-15 13:43:42 +0900
committerRapptz <[email protected]>2020-01-14 23:46:46 -0500
commit7af8b313e5305d72f9a5f3ade20d493b26ddf7db (patch)
tree113479bebe7840c48979a72f8a834a8a2e30da25
parentDocument BaseActivity (diff)
downloaddiscord.py-7af8b313e5305d72f9a5f3ade20d493b26ddf7db.tar.xz
discord.py-7af8b313e5305d72f9a5f3ade20d493b26ddf7db.zip
[commands] Add missing async in documentation
-rw-r--r--discord/ext/commands/core.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/discord/ext/commands/core.py b/discord/ext/commands/core.py
index f4b6aedb..97c2634c 100644
--- a/discord/ext/commands/core.py
+++ b/discord/ext/commands/core.py
@@ -1318,7 +1318,7 @@ def check(predicate):
def owner_or_permissions(**perms):
original = commands.has_permissions(**perms).predicate
- def extended_check(ctx):
+ async def extended_check(ctx):
if ctx.guild is None:
return False
return ctx.guild.owner_id == ctx.author.id or await original(ctx)