如何让discord python bot对自己的消息做出反应?

0 python discord discord.py

目前正在开发一个发送嵌入的小机器人,我希望它对自己做出反应,但不确定如何做到这一点。有什么帮助吗?

Tri*_*sto 5

获取您想要响应的消息并使用Client.add_reaction()

例如,如果您对嵌入作出反应

msg = await bot.send_message(ctx.message.channel,embed=embed)
await bot.add_reaction(msg, "")
Run Code Online (Sandbox Code Playgroud)