1
0
Fork 0
mirror of synced 2024-05-17 19:12:33 +12:00

Stopped recording disabled commands errors

This commit is contained in:
Phxntxm 2016-11-11 20:22:35 -06:00
parent 0a7a997072
commit 8199f53102

2
bot.py
View file

@ -80,6 +80,8 @@ async def process_command(ctx):
async def on_command_error(error, ctx):
if isinstance(error, commands.CommandNotFound):
return
if isinstance(error, commands.DisabledCommand):
return
try:
if isinstance(error.original, discord.Forbidden):
return