discord.py na błąd polecenia

@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")
HelloWorld