mirror of
https://github.com/uhIgnacio/EmoteManager.git
synced 2024-08-15 02:23:13 +00:00
cogs/emoji.__local_check: fix error message
- also fail when user has perms but bot doesn't - clarify this in the error message
This commit is contained in:
parent
12d32c985a
commit
d572e593b6
1 changed files with 5 additions and 2 deletions
|
@ -52,11 +52,14 @@ class Emotes:
|
|||
f'{utils.SUCCESS_EMOTES[False]} Sorry, this command may only be used in a server.')
|
||||
return False
|
||||
|
||||
if not context.author.guild_permissions.manage_emojis:
|
||||
if (
|
||||
not context.author.guild_permissions.manage_emojis
|
||||
or not context.guild.me.guild_permissions.manage_emojis
|
||||
):
|
||||
await context.send(
|
||||
f'{utils.SUCCESS_EMOTES[False]} '
|
||||
"Sorry, you don't have enough permissions to run this command. "
|
||||
'You need the Manage Emojis permission.')
|
||||
'You and I both need the Manage Emojis permission.')
|
||||
return False
|
||||
|
||||
return True
|
||||
|
|
Loading…
Reference in a new issue