[英]Discord.py: how do i make the bot get a list of users who reacted to a message in a given time
[英]how to get the users who reacted with an emoji in a message (discord.py)
请有人提供一个示例,说明如何让用户对消息使用表情符号做出反应?
python - discord.py-rewrite
编辑:我开始获取消息并输出它的内容代码:
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)))
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.