1
0
Fork 0
mirror of synced 2024-06-26 18:21:15 +12:00

Corrected issue where the comparison for custom permissions was comparing the wrong value

This commit is contained in:
phxntxm 2016-07-30 21:16:59 -05:00
parent 8e050c016e
commit 2b4d331b1a

View file

@ -18,7 +18,9 @@ def customPermsOrRole(**perms):
setattr(default_perms, perm, setting)
try:
required_perm = config.getContent('custom_permissions')[ctx.message.server.id][ctx.command.qualified_name]
required_perm_value = config.getContent('custom_permissions')[ctx.message.server.id][
ctx.command.qualified_name]
required_perm = discord.Permissions(required_perm_value)
except KeyError:
required_perm = default_perms
return member_perms >= required_perm