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

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

      1. <small id='j7alF'></small><noframes id='j7alF'>

        Discord.py on_member_join 不起作用,沒有錯誤消息

        Discord.py on_member_join not working, no error message(Discord.py on_member_join 不起作用,沒有錯誤消息)

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

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

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

                  <tfoot id='c3VWu'></tfoot>
                • 本文介紹了Discord.py on_member_join 不起作用,沒有錯誤消息的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

                  問題描述

                  我正在嘗試使用 Discord.py 庫制作一個不和諧機器人.帶有 @client.command() 裝飾器的命令對我來說工作正常,但我嘗試過的事件都沒有工作.

                  I am trying to make a discord bot with the Discord.py library. The commands with the @client.command() decorator work fine for me, but none of the event ones that I tried work.

                  
                  @client.event
                  async def on_member_join(member):
                      channel = client.get_channel(ChannelId) #I did define channel Id in my code
                      await channel.send("someone has joined")
                  
                  @client.event
                  async def on_member_remove(member):
                      print("Someone has left")
                  

                  我希望這會輸出到終端或我輸入的頻道 ID,但什么也沒有出現,甚至沒有錯誤消息.

                  I would expect this to output to the terminal or in the channel id I put in, but nothing appears, not even an error message.

                  *我用過客戶端.對于所有功能.*我在 mac 上做這個.

                  *I used client. for all functions. *I am doing this on mac.

                  我不太確定它為什么起作用,我沒有收到任何錯誤消息,而且我似乎找不到其他人遇到這個問題.

                  Im not quite sure why its working, I do not get any error messages, and I cant seem to find anyone else with this problem.

                  提前致謝

                  推薦答案

                  使用版本 >1.5.0 你可以這樣做:

                  With version >1.5.0 you can do something like this:

                  import discord
                  
                  intents = discord.Intents.default()
                  intents.members = True
                  
                  client = discord.Client(intents=intents)
                  
                  @client.event
                  async def on_member_join(member):
                      await member.send("Welcome!")
                  

                  這篇關于Discord.py on_member_join 不起作用,沒有錯誤消息的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!

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

                  相關文檔推薦

                  python: Two modules and classes with the same name under different packages(python:不同包下同名的兩個模塊和類)
                  Configuring Python to use additional locations for site-packages(配置 Python 以使用站點包的其他位置)
                  How to structure python packages without repeating top level name for import(如何在不重復導入頂級名稱的情況下構造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(分發帶有已編譯動態共享庫的 Python 包)

                      <tbody id='7OtKb'></tbody>

                        • <bdo id='7OtKb'></bdo><ul id='7OtKb'></ul>
                            <legend id='7OtKb'><style id='7OtKb'><dir id='7OtKb'><q id='7OtKb'></q></dir></style></legend>
                          1. <small id='7OtKb'></small><noframes id='7OtKb'>

                          2. <i id='7OtKb'><tr id='7OtKb'><dt id='7OtKb'><q id='7OtKb'><span id='7OtKb'><b id='7OtKb'><form id='7OtKb'><ins id='7OtKb'></ins><ul id='7OtKb'></ul><sub id='7OtKb'></sub></form><legend id='7OtKb'></legend><bdo id='7OtKb'><pre id='7OtKb'><center id='7OtKb'></center></pre></bdo></b><th id='7OtKb'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='7OtKb'><tfoot id='7OtKb'></tfoot><dl id='7OtKb'><fieldset id='7OtKb'></fieldset></dl></div>
                            <tfoot id='7OtKb'></tfoot>
                          3. 主站蜘蛛池模板: 高清一区二区三区 | 国产精品99久久久久久久久 | 日产精品久久久一区二区 | 欧美日韩精品久久久免费观看 | 欧美黑人一区二区三区 | 在线播放a| 羞羞网站在线观看 | 成人网在线观看 | a毛片在线观看 | 国产黄色一区二区 | 日韩精品一区在线 | 免费av在线网站 | 91伊人网| 国产一级片在线 | cao视频| 久久精品在线观看 | 香蕉视频在线播放 | 久久96 | 国产com| 久久久一区二区 | 欧美综合一区 | 色婷婷综合在线 | 九九热这里只有 | 欧美综合一区二区 | 99一区二区 | 狠狠操网| av免费在线观看网站 | 亚洲美女爱爱 | 免费在线a| 五月婷婷av | 天天操夜夜摸 | 亚洲一区二区三区免费 | 精品欧美日韩 | 深夜福利av | 亚洲精品观看 | 超碰在线网站 | 欧美综合网 | 亚洲精品一二三四 | 一级黄色a| 欧美激情成人 | 特黄aaaaaaaaa真人毛片 |