Change permissions to use guild permissions
This commit is contained in:
parent
0c53100e7b
commit
446990f7e5
|
@ -165,7 +165,7 @@ def custom_perms(**perms):
|
||||||
return True
|
return True
|
||||||
|
|
||||||
# Get the member permissions so that we can compare
|
# 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
|
# Currently the library doesn't handle administrator overrides..so lets do this manually
|
||||||
if member_perms.administrator:
|
if member_perms.administrator:
|
||||||
return True
|
return True
|
||||||
|
|
Loading…
Reference in a new issue