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
|
return guild_perms >= required_perm or channel_perms >= required_perm
|
||||||
|
|
||||||
|
|
||||||
async def can_run(**kwargs):
|
def can_run(**kwargs):
|
||||||
def predicate(ctx):
|
async def predicate(ctx):
|
||||||
# First check if the command requires ownership of the bot
|
# First check if the command requires ownership of the bot
|
||||||
if kwargs.pop("ownership", False) and not is_owner(ctx):
|
if kwargs.pop("ownership", False) and not is_owner(ctx):
|
||||||
return False
|
return False
|
||||||
|
|
Loading…
Reference in a new issue