1@client.event() #Replace 'client' with whatever neccesary
2async def on_command_error(ctx, error):
3 if isinstance(error, commands.MissingRequiredArguments):
4 # Replace MissingRequiredArguments with your error
5 ctx.send("Please pass all required arguments")