Correct syntax error in check
This commit is contained in:
parent
26e9e53c80
commit
1cf766820d
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue