1
0
Fork 0
mirror of synced 2024-05-20 20:42:27 +12:00

Corrected how to check if a command can have permissions setup on it

This commit is contained in:
phxntxm 2017-03-08 02:33:18 -06:00
parent 1d3ab2fb20
commit b0a6328b57

View file

@ -306,7 +306,7 @@ class Mod:
# Which means I do not want to check custom permissions at all
# Currently the second case is only on adding and removing permissions, to avoid abuse on these
for check in cmd.checks:
if "is_owner" == check.__name__ or "has_permissions" not in str(check):
if "is_owner" == check.__name__ or "has_permissions" in str(check):
await ctx.send("This command cannot have custom permissions setup!")
return