[commands] Add missing async in documentation

This commit is contained in:
apple502j 2020-01-15 13:43:42 +09:00 committed by Rapptz
parent 5f7a97ff96
commit 7af8b313e5

View File

@ -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)