1
0
Fork 0
mirror of https://github.com/uhIgnacio/EmoteManager.git synced 2024-08-15 02:23:13 +00:00

fix allowing @Emote Manager list

This commit is contained in:
bmintz 2018-08-11 21:08:23 -05:00
parent e366cb4537
commit 7b843d0bd9

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