Checking the actual permissions instead of the role
This commit is contained in:
parent
1fd71e3943
commit
645f8fa85f
1 changed files with 1 additions and 1 deletions
|
@ -29,7 +29,7 @@ def customPermsOrRole(perm):
|
||||||
return True
|
return True
|
||||||
config.closeConnection()
|
config.closeConnection()
|
||||||
for role in ctx.message.author.roles:
|
for role in ctx.message.author.roles:
|
||||||
if getattr(role, perm):
|
if getattr(role.permissions, perm):
|
||||||
return True
|
return True
|
||||||
return False
|
return False
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue