【发布时间】:2021-08-17 00:00:51
【问题描述】:
我正在尝试在消息的反应中获取表情符号的 ID,但我不知道该怎么做。
@client.event
async def on_message(message):
channal = client.get_channel(825523364844142601)
embeds = message.embeds
for embed in embeds:
if embed.author.name in wishlist:
reaction = get(message.reactions)
print(reaction)
await channal.send("yes")
else:
await channal.send("false")
context : 我在玩一个不和谐的游戏,机器人发送一个带有角色名称的嵌入,在这个嵌入上,机器人会自动添加一个反应。我想要的是获取机器人反应的 id 并添加相同的 id
【问题讨论】:
-
get()定义在哪里?
标签: python discord discord.py emoji