如何将参数从主命令发送到错误处理程序[discord.py]?

时间:2020-11-08 12:52:59

标签: python discord discord.py

如何将主命令中的参数发送给错误处理程序? 例如:

@bot.command()
async def command(ctx, param):
  # code

@command.error
async def err(ctx, err):
  # somehow get the value of param

0 个答案:

没有答案