mirror of
https://github.com/uhIgnacio/EmoteManager.git
synced 2024-08-15 02:23:13 +00:00
fix some error messages being sent twice
This commit is contained in:
parent
28423f85c6
commit
613600123f
1 changed files with 0 additions and 9 deletions
|
@ -94,15 +94,6 @@ class Emotes(commands.Cog):
|
||||||
|
|
||||||
return True
|
return True
|
||||||
|
|
||||||
@commands.Cog.listener()
|
|
||||||
async def on_command_error(self, context, error):
|
|
||||||
if isinstance(error, (errors.EmoteManagerError, errors.MissingManageEmojisPermission)):
|
|
||||||
await context.send(str(error))
|
|
||||||
|
|
||||||
if isinstance(error, commands.NoPrivateMessage):
|
|
||||||
await context.send(
|
|
||||||
f'{utils.SUCCESS_EMOJIS[False]} Sorry, this command may only be used in a server.')
|
|
||||||
|
|
||||||
@commands.command(usage='[name] <image URL or custom emote>')
|
@commands.command(usage='[name] <image URL or custom emote>')
|
||||||
async def add(self, context, *args):
|
async def add(self, context, *args):
|
||||||
"""Add a new emote to this server.
|
"""Add a new emote to this server.
|
||||||
|
|
Loading…
Reference in a new issue