【发布时间】:2020-07-07 16:55:43
【问题描述】:
如何将命令限制为一个通道?这就是我所拥有的。当我使用该命令时,它说该命令已正确调用,但它没有发送消息。
@commands.group(name = "pic", invoke_without_command=True, ignore_extra=False)
async def picture(self, ctx, *args):
if ctx.channel == ("bot-test"):
await ctx.send("pic")
【问题讨论】:
标签: discord.py