📜  discord.py 命令错误 - Python 代码示例

📅  最后修改于: 2022-03-11 14:45:19.252000             🧑  作者: Mango

代码示例1
@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")