【发布时间】:2020-05-26 07:30:48
【问题描述】:
所以我试图做一个说命令,所以如果我的服务器不和谐开发团队的成员使用它,那么它会向公告频道发送一条消息。使用discord.py和python的重写,它根本不会发送消息或删除消息这是我的代码
@bot.command(pass_context=True)
@commands.has_role('Manager')
async def say(ctx, content):
channel = ctx.guild.get_channel("714229744798925012")
await channel.send(channel,content)
await Message_delete(content)
我知道为什么会发生这种情况,它还说经理 cos 我在测试服务器上对其进行测试,然后才上线
【问题讨论】:
标签: python discord.py