From 61b6c5d0bedc42558b100495d29d8e7a84c3003a Mon Sep 17 00:00:00 2001 From: Phxntxm Date: Fri, 30 Jun 2017 19:30:40 -0500 Subject: [PATCH] Add a manual check for admin privileges --- cogs/utils/checks.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cogs/utils/checks.py b/cogs/utils/checks.py index 2e98f4a..09813bb 100644 --- a/cogs/utils/checks.py +++ b/cogs/utils/checks.py @@ -165,6 +165,9 @@ def custom_perms(**perms): # Get the member permissions so that we can compare member_perms = ctx.message.author.permissions_in(ctx.message.channel) + # Currently the library doesn't handle administrator overrides..so lets do this manually + if member_perms.administrator: + return True # Next, set the default permissions if one is not used, based on what was passed # This will be overriden later, if we have custom permissions required_perm = discord.Permissions.none()