Python 3.x 如何获取对消息做出反应的用户?

Python 3.x 如何获取对消息做出反应的用户?,python-3.x,discord,discord.py,Python 3.x,Discord,Discord.py,我正在尝试制作一个赠品机器人。这个机器人应该把做出反应的用户从列表中随机选择一个,但我不知道如何让做出反应的用户 @client.command() @commands.guild_only() @commands.has_角色(“赠品”) 异步def赠品(ctx,等待,*,奖励): end=int(等待) giveEmbed=discord.Embed(title='A giveaway has beging!',description='response to this message to

我正在尝试制作一个赠品机器人。这个机器人应该把做出反应的用户从列表中随机选择一个,但我不知道如何让做出反应的用户

@client.command()
@commands.guild_only()
@commands.has_角色(“赠品”)
异步def赠品(ctx,等待,*,奖励):
end=int(等待)
giveEmbed=discord.Embed(title='A giveaway has beging!',description='response to this message to enter the giveaway',color=discord.color.from_rgb(255,107,33))
giveEmbed.add_字段(name='Prize:',value=f'{raward}',inline=True)
giveEmbed.add_字段(name='Time:',value=f'{Time}消息发送后的小时数',inline=True)
message=wait ctx.send(嵌入=giveEmbed)

反应=等待消息。添加反应(“您必须再次获取消息才能获得“更新”的反应:

fetched_message=wait ctx.channel.fetch_message(message.id)
反应=获取的消息。反应
对于反应中的反应:
如果str(反应)='