From 7b843d0bd9df239a64241a66c256daa9932f3404 Mon Sep 17 00:00:00 2001 From: bmintz Date: Sat, 11 Aug 2018 21:08:23 -0500 Subject: [PATCH] fix allowing @Emote Manager list --- cogs/emote.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/cogs/emote.py b/cogs/emote.py index a41983b..265605a 100644 --- a/cogs/emote.py +++ b/cogs/emote.py @@ -44,7 +44,9 @@ class Emotes: async def __local_check(self, context): if not context.guild: raise commands.NoPrivateMessage - return False + + if context.command is self.list: + return True if ( not context.author.guild_permissions.manage_emojis @@ -52,7 +54,7 @@ class Emotes: ): raise errors.MissingManageEmojisPermission - return context.command is self.list + return True async def on_command_error(self, context, error): if isinstance(error, (errors.EmoteManagerError, errors.MissingManageEmojisPermission)):