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

      <bdo id='Z7QCE'></bdo><ul id='Z7QCE'></ul>

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

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

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

    1. Discord.py:on_member_join 突然停止工作

      Discord.py: on_member_join suddenly stopped working(Discord.py:on_member_join 突然停止工作)

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

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

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

                本文介紹了Discord.py:on_member_join 突然停止工作的處理方法,對(duì)大家解決問(wèn)題具有一定的參考價(jià)值,需要的朋友們下面隨著小編來(lái)一起學(xué)習(xí)吧!

                問(wèn)題描述

                我正在嘗試以下代碼:

                @bot.event異步定義 on_member_join(成員):打印(作品")對(duì)于 member.guild.text_channels 中的頻道:如果 channel.name == '一般':await channel.send("Welcome to " + member.guild.name + ", " + member + "!")

                我之前的 on_member_join 事件運(yùn)行良好,但由于某種原因它不再運(yùn)行了.我嘗試更新到 discord.py 1.5.任何幫助將不勝感激.

                我沒(méi)有收到任何錯(cuò)誤.

                解決方案

                discord.py 1.5.0 現(xiàn)在支持 discord API 的 Privileged Gateway Intents.為了能夠利用服務(wù)器數(shù)據(jù),您需要:

                • 在您的

                  • 使用 discord.Intents 在代碼的開(kāi)頭:

                  intents = Intents.all()#如果你使用commands.Bot()bot = commands.Bot(command_prefix="!", intents=intents)#如果你使用 discord.Client()客戶端 = discord.Client(intents=intents)

                  I have the following code that I am trying out:

                  @bot.event
                  async def on_member_join(member):
                      print("works")
                      for channel in member.guild.text_channels:
                          if channel.name == 'general':
                              await channel.send("Welcome to " + member.guild.name + ", " + member + "!")
                  

                  My previous on_member_join event worked fine, but for some reason it doesn't anymore. I have tried updating to discord.py 1.5. Any help would be greatly appreciated.

                  I am getting no errors.

                  解決方案

                  discord.py 1.5.0 now supports discord API's Privileged Gateway Intents. In order to be able to exploit server data, you need to:

                  • Enable Presence Intent and Server Members Intent in your discord application:

                  • Use discord.Intents at the beginning of your code:

                  intents = Intents.all()
                  
                  #If you use commands.Bot()
                  bot = commands.Bot(command_prefix="!", intents=intents)
                  
                  #If you use discord.Client()
                  client = discord.Client(intents=intents)
                  

                  這篇關(guān)于Discord.py:on_member_join 突然停止工作的文章就介紹到這了,希望我們推薦的答案對(duì)大家有所幫助,也希望大家多多支持html5模板網(wǎng)!

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

                相關(guān)文檔推薦

                python: Two modules and classes with the same name under different packages(python:不同包下同名的兩個(gè)模塊和類)
                Configuring Python to use additional locations for site-packages(配置 Python 以使用站點(diǎn)包的其他位置)
                How to structure python packages without repeating top level name for import(如何在不重復(fù)導(dǎo)入頂級(jí)名稱的情況下構(gòu)造python包)
                Install python packages on OpenShift(在 OpenShift 上安裝 python 包)
                How to refresh sys.path?(如何刷新 sys.path?)
                Distribute a Python package with a compiled dynamic shared library(分發(fā)帶有已編譯動(dòng)態(tài)共享庫(kù)的 Python 包)
                  <tbody id='fJI5A'></tbody>

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

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

                          <bdo id='fJI5A'></bdo><ul id='fJI5A'></ul>
                          <legend id='fJI5A'><style id='fJI5A'><dir id='fJI5A'><q id='fJI5A'></q></dir></style></legend>
                        • 主站蜘蛛池模板: 亚洲国产成人一区二区 | 国产一区二区 | 亚洲精品亚洲人成人网 | 亚洲精品一二区 | 亚洲欧美日韩精品久久亚洲区 | 一区二区三区久久久 | 成人不卡在线 | 色欧美片视频在线观看 | 成人精品国产免费网站 | 亚洲视频中文字幕 | xx视频在线观看 | 亚洲成人一区二区 | 韩国精品一区二区三区 | 免费a v网站 | 亚洲成人在线视频播放 | 久久男女视频 | 精品欧美一区二区久久久伦 | www.久久久久久久久久久 | 三级成人片 | 中文字幕一级毛片视频 | 免费观看国产视频在线 | 色婷婷在线视频 | 神马久久久久久久久久 | 操久久 | 国产精品久久久久国产a级 欧美日韩国产免费 | 日韩精品在线看 | aaaaaaa片毛片免费观看 | 亚洲精品乱码久久久久久蜜桃 | 日韩欧美成人一区二区三区 | 久久国产精品视频 | www.婷婷| 99国内精品久久久久久久 | 天天看天天操 | 国产精品99久久久精品免费观看 | 久久精品国产亚洲夜色av网站 | 亚洲第一在线 | 中文字幕成人网 | 伊人伊成久久人综合网站 | 欧美在线不卡 | 欧美日韩国产一区 | 欧美日韩三级 |