In a discord.py rewrite bot, if someone types the bots prefix and then any text after it, if the text is not found as a command you will get
Ignoring except
Write an on_command_error error handler that checks if the error is an instance of CommandNotFound, and ignores it if it is
CommandNotFound
from discord.ext.commands import CommandNotFound @bot.event async def on_command_error(ctx, error): if isinstance(error, CommandNotFound): return raise error