1
0
Fork 0
mirror of synced 2024-05-24 14:29:39 +12:00

Change permissions to use guild permissions

This commit is contained in:
phxntxm 2017-07-25 19:06:29 -05:00
parent 0c53100e7b
commit 446990f7e5

View file

@ -165,7 +165,7 @@ def custom_perms(**perms):
return True
# Get the member permissions so that we can compare
member_perms = ctx.message.author.permissions_in(ctx.message.channel)
member_perms = ctx.message.author.guild_permissions
# Currently the library doesn't handle administrator overrides..so lets do this manually
if member_perms.administrator:
return True