Reputation: 1591
I'm running a single bot on my server, but hoping to add another. However, I'm getting
discord.ext.commands.errors.CommandNotFound: Command "[command]" is not found
Obviously I'm going to get this error if a command doesn't exist, but it may exist on my other bot, so it's going to keep throwing out this error message.
It may not seem like a big deal, but there is any way I can disable this as it's going to fill up my terminal with these errors all of the time.
Upvotes: 0
Views: 85
Reputation: 60994
Sure, you can write a global error handler that just ignores these errors (or modify your existing error handler if you have one)
@bot.event
async def on_command_error(ctx, error):
if isinstance(error, commands.CommandNotFound):
pass
else:
raise error
Upvotes: 1