我只是在discord.py中找不到解决方法。 Reaction不包括成员。
答案 0 :(得分:1)
我想我在您的上一篇文章中回答了,但是对那些没有看过的人作了回答。这是我自己的机器人实现的代码段。 :)
@client.command(pass_context = True)
async def test(ctx):
msg = await client.say('TEST')
await client.add_reaction(msg, "✅")
await asyncio.sleep(5)
cache_msg = discord.utils.get(client.messages, id = msg.id)
for reactor in cache_msg.reactions:
reactors = await client.get_reaction_users(reactor)
#from here you can do whatever you need with the member objects
for member in reactors:
await client.say(member.name)
答案 1 :(得分:0)
实际上有一个名为get_reaction_users的协程