我想做一个建议命令。命令正在运行。该命令向名为“建议”的特定通道发送嵌入。我想给嵌入添加反应(❌ 和✅). 现在我需要你的帮助。我无法向嵌入添加反应。这是我的实际代码,没有添加反应:
@bot.command()
async def suggestion(ctx, *, content: str):
title, description= content.split('/')
embed = discord.Embed(title=title, description=description, color=0x00ff40)
channel = bot.get_channel(857413508224385054)
await channel.send(embed=embed)
await ctx.send("your suggestion is send!")
await ctx.message.delete()
您需要定义嵌入以添加反应
简单地做:
另一种方法是设置一个事件来侦听频道中的消息:
相关问题 更多 >
编程相关推荐