how to check for commands that didnt execute discord.py code example
Example: discord.py on command error
@client.event() #Replace 'client' with whatever neccesary
async def on_command_error(ctx, error):
if isinstance(error, commands.MissingRequiredArguments):
# Replace MissingRequiredArguments with your error
ctx.send("Please pass all required arguments")