【发布时间】:2021-07-01 04:24:54
【问题描述】:
Discord.py rewrite 中的命令示例函数如下:
bot = commands.Bot(command_prefix="$", help_command=None)
@bot.command(pass_context=True)
async def say(ctx, *, message):
await ctx.send(message)
不和谐调用函数的方式是$say something。 Discord.py 是如何知道函数 say 的名称以便使其成为命令的?
【问题讨论】:
标签: python discord discord.py