久久久久久久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. 主站蜘蛛池模板: 亚州一区二区三区 | 欧美性一区二区三区 | 全免费a级毛片免费看视频免 | 国产三级| 国产精品毛片一区二区在线看 | 中文字幕免费在线 | 精品无码久久久久久国产 | 夜夜骑首页 | 国产日韩欧美在线观看 | 成人毛片视频在线播放 | 国产亚洲精品久久情网 | 亚洲欧美日韩在线不卡 | 成人一区二区三区在线观看 | 欧洲毛片 | 一区二区在线免费观看视频 | 亚洲国产精品一区二区www | 精品久久国产视频 | 91久久| 国产在线一区二区三区 | 亚洲va国产日韩欧美精品色婷婷 | 久久久精 | 成人一区二区在线 | 国产我和子的乱视频网站 | 久久久999成人 | 色综合网站 | jlzzjlzz欧美大全 | chengrenzaixian| 一区二区三区四区不卡 | 国产91av视频| 涩涩操 | 国产精品综合网 | 欧美亚洲视频 | 国产乱码精品一区二区三区五月婷 | 免费看黄色小视频 | 欧美视频二区 | 国产欧美精品区一区二区三区 | av在线黄 | 红桃视频一区二区三区免费 | 99热这里| 国产成人99久久亚洲综合精品 | 国产精品欧美一区二区三区 |