1
0
Fork 0
mirror of synced 2024-05-06 21:52:30 +12:00

Correct syntax error in check

This commit is contained in:
phxntxm 2018-09-23 17:38:34 -05:00
parent 26e9e53c80
commit 1cf766820d

View file

@ -181,8 +181,8 @@ def has_perms(ctx, **perms):
return guild_perms >= required_perm or channel_perms >= required_perm
async def can_run(**kwargs):
def predicate(ctx):
def can_run(**kwargs):
async def predicate(ctx):
# First check if the command requires ownership of the bot
if kwargs.pop("ownership", False) and not is_owner(ctx):
return False