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

    <bdo id='1Jrj8'></bdo><ul id='1Jrj8'></ul>
    <legend id='1Jrj8'><style id='1Jrj8'><dir id='1Jrj8'><q id='1Jrj8'></q></dir></style></legend>

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

      <small id='1Jrj8'></small><noframes id='1Jrj8'>

        Discord 'on_member_join' 功能不起作用

        Discord #39;on_member_join#39; function not working(Discord on_member_join 功能不起作用)
      1. <small id='1l6lt'></small><noframes id='1l6lt'>

        • <legend id='1l6lt'><style id='1l6lt'><dir id='1l6lt'><q id='1l6lt'></q></dir></style></legend>

        • <tfoot id='1l6lt'></tfoot>
            <bdo id='1l6lt'></bdo><ul id='1l6lt'></ul>
              <tbody id='1l6lt'></tbody>

              1. <i id='1l6lt'><tr id='1l6lt'><dt id='1l6lt'><q id='1l6lt'><span id='1l6lt'><b id='1l6lt'><form id='1l6lt'><ins id='1l6lt'></ins><ul id='1l6lt'></ul><sub id='1l6lt'></sub></form><legend id='1l6lt'></legend><bdo id='1l6lt'><pre id='1l6lt'><center id='1l6lt'></center></pre></bdo></b><th id='1l6lt'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='1l6lt'><tfoot id='1l6lt'></tfoot><dl id='1l6lt'><fieldset id='1l6lt'></fieldset></dl></div>
                  本文介紹了Discord 'on_member_join' 功能不起作用的處理方法,對大家解決問題具有一定的參考價(jià)值,需要的朋友們下面隨著小編來一起學(xué)習(xí)吧!

                  問題描述

                  我的 on_member_join 似乎不起作用.我希望我的機(jī)器人說出加入服務(wù)器的成員的姓名,但它不檢測是否有人加入或離開.

                  My on_member_join doesnt seem to work. I wanted my bot to say out the names of the members that joined the sever but it doesnt detect if someone has joined or left.

                  import discord
                  from discord.ext import commands
                  
                  client = commands.Bot(command_prefix = '.')
                  
                  @client.event
                  async def on_ready():
                      print("bot is ready ")
                  
                  @client.event
                  async def on_member_join(member):
                      print(f'{member.name} has joined this server')
                  
                  @client.event
                  async def on_member_remove(member):
                      print(f'{member}was removed')
                  
                  client.run('*************************')
                  

                  它正在打印bot is ready";在終端上,因此機(jī)器人正在工作.但是沒有檢測到成員離開或加入請幫助.

                  It is printing "bot is ready" on the terminal so the bot is working. But isn't detecting members leaving or joining pls help.

                  推薦答案

                  你使用的可能是discord python 1.5.0或以上版本,這是一個(gè)常見的錯(cuò)誤,你只需要意圖.如果有錯(cuò)誤,您應(yīng)該閱讀它,它會將您重定向到 discord 開發(fā)門戶中的機(jī)器人,在那里您可以激活特權(quán)網(wǎng)關(guān)意圖 看看這個(gè)

                  You're probably using discord python 1.5.0 or above, it's a common error, you just need Intents. If there's a error, you are supposed to read it, it will redirect you to your bot in the discord dev portal, there you can activate the privileged gateway intents check this out

                  并將其添加到您的代碼中

                  And add this to your code

                  intents = discord.Intents.default()
                  intents.members = True
                  
                  client = commands.Bot(command_prefix='.', intents=intents)
                  

                  這篇關(guān)于Discord 'on_member_join' 功能不起作用的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網(wǎng)!

                  【網(wǎng)站聲明】本站部分內(nèi)容來源于互聯(lián)網(wǎng),旨在幫助大家更快的解決問題,如果有圖片或者內(nèi)容侵犯了您的權(quán)益,請聯(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)入頂級名稱的情況下構(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)共享庫的 Python 包)
                  • <small id='3r3qa'></small><noframes id='3r3qa'>

                      <legend id='3r3qa'><style id='3r3qa'><dir id='3r3qa'><q id='3r3qa'></q></dir></style></legend>

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

                          1. 主站蜘蛛池模板: 呦呦在线视频 | 国产激情三区 | 在线看av的网址 | 亚洲免费精品 | 国产一区二区麻豆 | 欧美精品久久久 | 国产精品一区二区三 | 福利二区 | 一级aaaaaa毛片免费同男同女 | 国产日韩视频在线 | 国产精品久久久久久久 | 中文字幕亚洲欧美 | 久久区二区 | 美美女高清毛片视频免费观看 | 久久久久久天堂 | 久久综合爱 | 亚洲精品乱 | 久久久久久久久国产成人免费 | 在线看片网站 | 欧美日韩国产精品一区 | 久久久久久国产精品免费免费男同 | 成人免费三级电影 | 欧美中文一区 | 欧美成人免费 | 岛国毛片在线观看 | 一区二区视频在线 | 在线黄 | 琪琪午夜伦伦电影福利片 | 少妇一级淫片免费播放 | 九九久久99 | 久在线 | av网站免费 | 国产精品成人国产乱一区 | 亚洲播放一区 | 国产精品国产a级 | 国产女人第一次做爰毛片 | 国产福利在线视频 | 亚洲导航深夜福利涩涩屋 | 国产亚洲一区二区精品 | 亚洲二区在线观看 | 国产激情在线 |