久久久久久久av_日韩在线中文_看一级毛片视频_日本精品二区_成人深夜福利视频_武道仙尊动漫在线观看

  • <small id='XwERb'></small><noframes id='XwERb'>

    1. <legend id='XwERb'><style id='XwERb'><dir id='XwERb'><q id='XwERb'></q></dir></style></legend><tfoot id='XwERb'></tfoot>

      <i id='XwERb'><tr id='XwERb'><dt id='XwERb'><q id='XwERb'><span id='XwERb'><b id='XwERb'><form id='XwERb'><ins id='XwERb'></ins><ul id='XwERb'></ul><sub id='XwERb'></sub></form><legend id='XwERb'></legend><bdo id='XwERb'><pre id='XwERb'><center id='XwERb'></center></pre></bdo></b><th id='XwERb'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='XwERb'><tfoot id='XwERb'></tfoot><dl id='XwERb'><fieldset id='XwERb'></fieldset></dl></div>
      • <bdo id='XwERb'></bdo><ul id='XwERb'></ul>

        獲取觸發 on_raw_reaction_remove(payload) 的用戶

        Get the user who triggered the on_raw_reaction_remove(payload)(獲取觸發 on_raw_reaction_remove(payload) 的用戶)

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

                <tbody id='cGXDg'></tbody>

                <legend id='cGXDg'><style id='cGXDg'><dir id='cGXDg'><q id='cGXDg'></q></dir></style></legend>
                  本文介紹了獲取觸發 on_raw_reaction_remove(payload) 的用戶的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

                  問題描述

                  我正在使用 async def on_raw_reaction_remove(payload) 來跟蹤用戶何時刪除反應.如何獲取觸發事件的用戶?在我的代碼中,我讓我的機器人通過在某些情況下刪除反應來觸發此事件 - 但是當這種情況發生時 user = await client.fetch_user(user_id) 總是等于對刪除的反應做出反應的用戶并且不是刪除它的機器人(當機器人刪除某人的反應時,我需要讓機器人成為用戶,所以我可以說 if user == bot: return我也試過了

                  I am using async def on_raw_reaction_remove(payload) to track when a user removes a reaction.. How do I get the user who triggered the event? In my code i have my bot trigger this event by removing reactions in certain scenarios - but when this happens user = await client.fetch_user(user_id) always equals to the user who had reacted with the removed reaction and not the bot that removed it (i need to get the bot as user when the bot removes someone's reaction, so i can say if user == bot: return I also tried

                  message = await channel.fetch_message(payload.message_id)
                  guild = message.guild
                  member = await guild.fetch_member(payload.user_id)
                  

                  但它是相同的.. 成員始終指向已刪除反應的所有者,而不是刪除反應的機器人...使用 on_raw_reaction_remove 時,我怎樣才能得到消除反應的人?

                  but it's the same.. the member is always pointing to the owner of the reaction that was removed, not the bot that's removing the reaction... How can i get the one who is removing the reaction when using on_raw_reaction_remove?

                  (如果相關 - 我在 discord 的開發者門戶中啟用了意圖并更新了我的代碼

                  (if it's relevant - i enabled intents in discord's developer portal and updated my code with

                  intents = discord.Intents.all()
                  client = discord.Client(intents=intents)
                  

                  感謝您的幫助,我已經在這方面浪費了很多時間:皺眉:(不和諧 api 的新手)

                  Thanks for your help, i wasted so much time on this already :frowning: (new to the discord api)

                  推薦答案

                  答案是——discord python API 中沒有任何東西可以告訴你是誰刪除了反應.

                  The answer is - there is nothing in the discord python API that can tell you who removed the reaction.

                  對于我的情況,我通過一種解決方法解決了這個問題 - 我只需要跟蹤我的機器人是否刪除了一個帶有變量的反應 - 我正在使用一個全局變量來跟蹤我的機器人何時刪除了一個反應,然后稍后再檢查是否變量是 TrueFalse 并做出相應的響應并重新設置變量.

                  For my case, I solved it with a workaround - I just had to track if my bot removed a reaction with a variable - I am using a global variable to track when my bot removes a reaction and then just check later if the variable is True or False and respond accordingly and reset the variable back.

                  謝謝

                  這篇關于獲取觸發 on_raw_reaction_remove(payload) 的用戶的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!

                  【網站聲明】本站部分內容來源于互聯網,旨在幫助大家更快的解決問題,如果有圖片或者內容侵犯了您的權益,請聯系我們刪除處理,感謝您的支持!

                  相關文檔推薦

                  How to make a discord bot that gives roles in Python?(如何制作一個在 Python 中提供角色的不和諧機器人?)
                  Discord bot isn#39;t responding to commands(Discord 機器人沒有響應命令)
                  Can you Get the quot;About mequot; feature on Discord bot#39;s? (Discord.py)(你能得到“關于我嗎?Discord 機器人的功能?(不和諧.py))
                  message.channel.id Discord PY(message.channel.id Discord PY)
                  How do I host my discord.py bot on heroku?(如何在 heroku 上托管我的 discord.py 機器人?)
                  discord.py - Automaticaly Change an Role Color(discord.py - 自動更改角色顏色)

                    <tfoot id='9wGXF'></tfoot>
                        <i id='9wGXF'><tr id='9wGXF'><dt id='9wGXF'><q id='9wGXF'><span id='9wGXF'><b id='9wGXF'><form id='9wGXF'><ins id='9wGXF'></ins><ul id='9wGXF'></ul><sub id='9wGXF'></sub></form><legend id='9wGXF'></legend><bdo id='9wGXF'><pre id='9wGXF'><center id='9wGXF'></center></pre></bdo></b><th id='9wGXF'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='9wGXF'><tfoot id='9wGXF'></tfoot><dl id='9wGXF'><fieldset id='9wGXF'></fieldset></dl></div>

                        <small id='9wGXF'></small><noframes id='9wGXF'>

                          <tbody id='9wGXF'></tbody>

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

                            主站蜘蛛池模板: 国产在线一区二区三区 | 亚洲欧洲精品一区 | 成人激情视频免费在线观看 | 欧美亚洲国语精品一区二区 | 久久综合入口 | 免费一区 | 久久国产成人午夜av影院武则天 | 国产精品一区二区久久 | 国产精品久久久久久久久久久久久 | 久久精品成人 | 成人精品鲁一区一区二区 | 久久国产精品免费视频 | 免费黄色的网站 | 黑人精品| 亚洲一区国产精品 | 自拍偷拍精品 | 欧美一卡二卡在线观看 | 国产一区91精品张津瑜 | 久久精品99| 99久久久99久久国产片鸭王 | 成人一区在线观看 | 日韩国产在线 | 男女搞网站| 久久精品com | 成人三级av| 欧美色综合| 国产精品一区二区免费 | 成人免费视频 | 亚洲精品乱码久久久久久黑人 | 国产精品一区二 | 国产高清一二三区 | 综合亚洲视频 | 老外几下就让我高潮了 | 成人免费观看男女羞羞视频 | 精品91 | 精品国产一区二区国模嫣然 | 黄色免费av | 欧美一级欧美三级在线观看 | www.青娱乐 | 三级黄片毛片 | 夜夜夜操 |