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:
bmintz 2018-07-30 19:04:43 -05:00
parent 12d32c985a
commit d572e593b6
1 changed files with 5 additions and 2 deletions

View File

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