fix allowing @Emote Manager list

This commit is contained in:
bmintz 2018-08-11 21:08:23 -05:00
parent e366cb4537
commit 7b843d0bd9
1 changed files with 4 additions and 2 deletions

View File

@ -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)):