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

Corrected how to check for a 403 error

This commit is contained in:
Phxntxm 2016-09-17 20:29:48 -05:00
parent 26f29255da
commit 85103727d6

4
bot.py
View file

@ -95,7 +95,9 @@ async def on_message(message):
@bot.event
async def on_command_error(error, ctx):
if isinstance(error, discord.Forbidden) or isinstance(error, commands.CommandNotFound):
if isinstance(error, commands.CommandNotFound):
return
if error.original and isinstance(error.original, discord.Forbidden):
return
if isinstance(error, commands.BadArgument):
fmt = "Please provide a valid argument to pass to the command: {}".format(error)