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

Add Unkown Message to ignored errors

This commit is contained in:
Phxntxm 2017-07-15 18:00:41 -05:00
parent aa2a2aa4ee
commit dec0875e10

3
bot.py
View file

@ -83,7 +83,8 @@ async def on_command_error(ctx, error):
elif isinstance(error.original, discord.HTTPException) and (
'empty message' in str(error.original) or
'INTERNAL SERVER ERROR' in str(error.original) or
'REQUEST ENTITY TOO LARGE' in str(error.original)):
'REQUEST ENTITY TOO LARGE' in str(error.original) or
'Unknown Message' in str(error.original)):
return
elif isinstance(error.original, aiohttp.ClientOSError):
return