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

      <bdo id='zOSHe'></bdo><ul id='zOSHe'></ul>
  • <small id='zOSHe'></small><noframes id='zOSHe'>

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

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

        Discord.py(重寫)on_member_update 無法正常工作

        Discord.py (Rewrite) on_member_update not working properly(Discord.py(重寫)on_member_update 無法正常工作)
        <tfoot id='KjuPo'></tfoot>

          <tbody id='KjuPo'></tbody>

        <small id='KjuPo'></small><noframes id='KjuPo'>

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

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

                  本文介紹了Discord.py(重寫)on_member_update 無法正常工作的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

                  問題描述

                  我對 discord.py 包的 on_member_update 函數有疑問.我的問題是 on_member_update 函數僅在機器人本身更新(如角色更新)時觸發,而不是在其他用戶更新時觸發(它應該如何工作).這是我的代碼的細分:

                  I have a question about the on_member_update function of the discord.py package. My Issue is that the on_member_update function only triggers when the bot itself is updated (like a role update) and not when an other user is updated (how it's supposed to work). Here is a breakdown of my Code:

                  import discord
                  from discord.ext import commands
                  import sys
                  
                  
                  TOKEN = 'myToken'
                  BOT_PREFIX = '!'
                  
                  
                  
                  Intents = discord.Intents()
                  Intents.members = True
                  Intents.presences = True
                  
                  bot = commands.Bot(command_prefix=BOT_PREFIX, Intents = Intents)
                  
                  @bot.event
                  async def on_ready():
                      print("Logged in as: " + bot.user.name + "
                  ")
                  
                  @bot.event
                  async def on_member_update(before, after):
                      if str(before.status) == "online":
                          if str(after.status) == "offline":
                              print("{} has gone {}.".format(after.name,after.status))
                      else:
                          print("lol")
                  
                  @bot.command(pass_context=True)
                  async def stop(ctx):
                      await ctx.author.send("bot stopped")
                      sys.exit(0)
                  
                  bot.run(TOKEN)
                  

                  希望您知道如何讓它發揮作用.感謝您的幫助!

                  Hope you have an idea how to make it work. Thank you for your help!

                  推薦答案

                  您應該從開發者門戶為您的機器人啟用存在意圖,如下圖所示.

                  You should enable the presences intents for your bot from the developers portal like in the image below.

                  discord 開發者門戶

                  https://i.stack.imgur.com/cAn8m.png

                  這篇關于Discord.py(重寫)on_member_update 無法正常工作的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持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 - 自動更改角色顏色)
                  <i id='mNwLW'><tr id='mNwLW'><dt id='mNwLW'><q id='mNwLW'><span id='mNwLW'><b id='mNwLW'><form id='mNwLW'><ins id='mNwLW'></ins><ul id='mNwLW'></ul><sub id='mNwLW'></sub></form><legend id='mNwLW'></legend><bdo id='mNwLW'><pre id='mNwLW'><center id='mNwLW'></center></pre></bdo></b><th id='mNwLW'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='mNwLW'><tfoot id='mNwLW'></tfoot><dl id='mNwLW'><fieldset id='mNwLW'></fieldset></dl></div>
                  • <bdo id='mNwLW'></bdo><ul id='mNwLW'></ul>
                    <legend id='mNwLW'><style id='mNwLW'><dir id='mNwLW'><q id='mNwLW'></q></dir></style></legend>
                      <tbody id='mNwLW'></tbody>

                      <small id='mNwLW'></small><noframes id='mNwLW'>

                        <tfoot id='mNwLW'></tfoot>

                          • 主站蜘蛛池模板: 日韩精品一区二区三区高清免费 | 最新免费av网站 | 久久久精品 | 精品免费国产一区二区三区 | 黑人一级黄色大片 | 美女福利网站 | 国产视频在线观看一区二区三区 | 99色视频 | 久久人| 久久综合一区二区三区 | 午夜精品一区二区三区在线视频 | 国产探花在线观看视频 | 中文精品久久 | 亚洲 欧美 日韩在线 | 人人人干 | 欧美在线一区二区三区 | 国产伦精品一区二区 | 99久久99 | 91av久久久| 日本精品免费 | 国产成人一区二区 | 色婷婷久久综合 | 亚洲成网站 | 91精品国产综合久久婷婷香蕉 | 久久天天 | 成人免费视频网站 | 毛片一级电影 | 日本a在线| 国产精品资源在线观看 | 一区二区三区视频在线观看 | 精品一区欧美 | 午夜av成人 | av免费网站在线观看 | 久久久久久国产精品三区 | 天天操狠狠操 | 亚洲精品91 | 欧美三区在线观看 | 黄色精品 | 成人福利片| 久久性色| 国产小视频在线 |