【发布时间】:2021-12-15 03:48:02
【问题描述】:
我想在 meme 消息中创建一个带有反应的 meme 机器人,每当有人点击反应时,机器人就会在他/她的 dm 中发送 meme。 我无法找到一种方法来做到这一点! 任何人都可以帮助我吗?
@client.event
async def on_reaction_add(reaction, user):
if user != client.user:
if str(reaction.emoji) == "➡️":
【问题讨论】:
-
你可以使用
reaction.message -
不,我不能说
> flags= > -
你不能是什么意思?
reaction.message为您提供message对象。如果您想要实际内容,请使用reaction.message.content -
它总是返回“None”
-
请编辑您的问题以包含您迄今为止尝试过的内容
标签: discord discord.py