1. <tfoot id='php9y'></tfoot>
      <i id='php9y'><tr id='php9y'><dt id='php9y'><q id='php9y'><span id='php9y'><b id='php9y'><form id='php9y'><ins id='php9y'></ins><ul id='php9y'></ul><sub id='php9y'></sub></form><legend id='php9y'></legend><bdo id='php9y'><pre id='php9y'><center id='php9y'></center></pre></bdo></b><th id='php9y'></th></span></q></dt></tr></i><div id='php9y'><tfoot id='php9y'></tfoot><dl id='php9y'><fieldset id='php9y'></fieldset></dl></div>

      • <bdo id='php9y'></bdo><ul id='php9y'></ul>
    1. <small id='php9y'></small><noframes id='php9y'>

    2. <legend id='php9y'><style id='php9y'><dir id='php9y'><q id='php9y'></q></dir></style></legend>

      如何获取对 discord.py 中的消息做出反应的成员列

      时间:2023-09-09

          <i id='9XqTc'><tr id='9XqTc'><dt id='9XqTc'><q id='9XqTc'><span id='9XqTc'><b id='9XqTc'><form id='9XqTc'><ins id='9XqTc'></ins><ul id='9XqTc'></ul><sub id='9XqTc'></sub></form><legend id='9XqTc'></legend><bdo id='9XqTc'><pre id='9XqTc'><center id='9XqTc'></center></pre></bdo></b><th id='9XqTc'></th></span></q></dt></tr></i><div id='9XqTc'><tfoot id='9XqTc'></tfoot><dl id='9XqTc'><fieldset id='9XqTc'></fieldset></dl></div>
        • <small id='9XqTc'></small><noframes id='9XqTc'>

            <tfoot id='9XqTc'></tfoot>

              <bdo id='9XqTc'></bdo><ul id='9XqTc'></ul>
            • <legend id='9XqTc'><style id='9XqTc'><dir id='9XqTc'><q id='9XqTc'></q></dir></style></legend>

                <tbody id='9XqTc'></tbody>
              1. 本文介绍了如何获取对 discord.py 中的消息做出反应的成员列表?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

                问题描述

                我只是在 discord.py 中找不到方法.Reaction 不包括成员.

                I just couldn't find a way to do it in discord.py. Reaction doesn't include members.

                推荐答案

                我想我在你的上一篇文章中已经回答了,但是对于那些没有看到它的人.这是我自己的实现它的机器人的片段.:)

                I think I answered in your last post, but to those who did not see it. Here is a snippet from my own bot that implements it. :)

                @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)
                

                这篇关于如何获取对 discord.py 中的消息做出反应的成员列表?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持html5模板网!

                上一篇:如何修复运行时错误:无法关闭正在运行的事件循 下一篇:Discord.py 静音命令

                相关文章

                最新文章

                  <bdo id='nr6qT'></bdo><ul id='nr6qT'></ul>
                <tfoot id='nr6qT'></tfoot>
                <legend id='nr6qT'><style id='nr6qT'><dir id='nr6qT'><q id='nr6qT'></q></dir></style></legend>

                    <i id='nr6qT'><tr id='nr6qT'><dt id='nr6qT'><q id='nr6qT'><span id='nr6qT'><b id='nr6qT'><form id='nr6qT'><ins id='nr6qT'></ins><ul id='nr6qT'></ul><sub id='nr6qT'></sub></form><legend id='nr6qT'></legend><bdo id='nr6qT'><pre id='nr6qT'><center id='nr6qT'></center></pre></bdo></b><th id='nr6qT'></th></span></q></dt></tr></i><div id='nr6qT'><tfoot id='nr6qT'></tfoot><dl id='nr6qT'><fieldset id='nr6qT'></fieldset></dl></div>
                  1. <small id='nr6qT'></small><noframes id='nr6qT'>