Checking the actual permissions instead of the role
This commit is contained in:
parent
1fd71e3943
commit
645f8fa85f
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue