1
0
Fork 0
mirror of synced 2024-06-27 02:31:04 +12:00

Checking the actual permissions instead of the role

This commit is contained in:
phxntxm 2016-07-15 18:22:53 -05:00
parent 1fd71e3943
commit 645f8fa85f

View file

@ -29,7 +29,7 @@ def customPermsOrRole(perm):
return True
config.closeConnection()
for role in ctx.message.author.roles:
if getattr(role, perm):
if getattr(role.permissions, perm):
return True
return False