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:
parent
e366cb4537
commit
7b843d0bd9
1 changed files with 4 additions and 2 deletions
|
@ -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)):
|
||||
|
|
Loading…
Reference in a new issue