如何获取对消息中的表情符号做出反应的用户 (discord.py)

how to get the users who reacted with an emoji in a message (discord.py)

有人可以提供一个示例,说明如何获取对消息中的表情符号做出反应的用户吗?

python - discord.py-重写

编辑: 我从获取消息并输出它的内容开始 代码:

   channel_name = bot.get_channel(735207841572454546)
   msg = await channel_name.fetch_message(id)
   await ctx.channel.send(msg.content)

答案:

channel_name = bot.get_channel(735222904530141244)
msg = await channel_name.fetch_message(id)
await ctx.channel.send(msg.reactions[0])
reaction = msg.reactions[0]
users = await reaction.users().flatten()
await ctx.channel.send('\n'.join(map(str, users)))