久久久久久久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>
                        • 主站蜘蛛池模板: 午夜精品影院 | 亚洲欧美一区在线 | 超碰成人在线观看 | 欧美综合久久久 | 亚洲一区二区久久久 | 91av在线电影 | 中文字幕不卡在线观看 | 色婷婷av一区二区三区软件 | 香蕉国产在线视频 | 懂色av色香蕉一区二区蜜桃 | 欧美成人影院在线 | 可以免费观看的av片 | 久久精品欧美电影 | 免费精品视频一区 | 亚洲美女网站 | www国产精品 | 亚洲成人精品国产 | 在线婷婷 | 免费观看av网站 | 精品乱码一区二区 | 91精品国产综合久久婷婷香蕉 | 亚洲精品中文字幕在线 | 日韩喷潮 | 久久久一区二区三区 | 99久久婷婷国产综合精品电影 | 国产精品久久久久久久久久久免费看 | 亚洲狠狠爱 | 国产激情偷乱视频一区二区三区 | 国产高清一区二区 | 亚洲欧美一区二区三区在线 | 成人日韩 | 欧美成人精品一区二区男人看 | 国产精品成av人在线视午夜片 | 天天夜碰日日摸日日澡 | www亚洲免费国内精品 | 国产午夜三级一区二区三 | 午夜影院黄 | 久草在线影 | 国产高潮好爽受不了了夜色 | 久久高潮 | 国产精品久久久久久久久久久久冷 |