mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-04-21 08:17:47 +00:00
[commands] Add missing async in documentation
This commit is contained in:
parent
5f7a97ff96
commit
7af8b313e5
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user