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

    • <bdo id='IxUhw'></bdo><ul id='IxUhw'></ul>

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

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

        Discord.py member.server_default_channel 中的參數(shù)無效

        Discord.py Invalid arguments inside member.server_default_channel(Discord.py member.server_default_channel 中的參數(shù)無效)
        <i id='jVpNy'><tr id='jVpNy'><dt id='jVpNy'><q id='jVpNy'><span id='jVpNy'><b id='jVpNy'><form id='jVpNy'><ins id='jVpNy'></ins><ul id='jVpNy'></ul><sub id='jVpNy'></sub></form><legend id='jVpNy'></legend><bdo id='jVpNy'><pre id='jVpNy'><center id='jVpNy'></center></pre></bdo></b><th id='jVpNy'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='jVpNy'><tfoot id='jVpNy'></tfoot><dl id='jVpNy'><fieldset id='jVpNy'></fieldset></dl></div>

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

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

                  <bdo id='jVpNy'></bdo><ul id='jVpNy'></ul>
                    <tbody id='jVpNy'></tbody>

                • 本文介紹了Discord.py member.server_default_channel 中的參數(shù)無效的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學(xué)習(xí)吧!

                  問題描述

                  我當(dāng)前的代碼是

                  @client.event
                  async def on_member_join(member):
                      serverchannel = member.server.default_channel
                      msg = "Wuss poppin', {0}. Welcome to {1}".format(member.mention, member.server.name)
                      await client.send_message(member.server.default_channel, msg)`
                  
                  @client.event
                  async def on_member_remove(member):
                      serverchannel = member.server.default_channel
                      msg = "Well. Cya, {0}!".format(member.mention)
                      await client.send_message(serverchannel, msg)
                  

                  以及其他必要的行(如 import discord 等)和其他命令.

                  As well as the other necessary lines (like import discord etc.) and other commands.

                  當(dāng)成員加入或離開時,我收到此錯誤:

                  When a member joins or leaves, I get this error:

                  Ignoring exception in on_member_join
                  Traceback (most recent call last):
                    File "C:UsersWillLAppDataLocalProgramsPythonPython36libsite-packagesdiscordclient.py", line 307, in _run_event
                      yield from getattr(self, event)(*args, **kwargs)
                    File "C:/Users/WillL/Desktop/MemzBot-master/index.py", line 102, in on_member_join
                      await client.send_message(member.server.default_channel, msg)
                    File "C:UsersWillLAppDataLocalProgramsPythonPython36libsite-packagesdiscordclient.py", line 1145, in send_message
                      channel_id, guild_id = yield from self._resolve_destination(destination)
                    File "C:UsersWillLAppDataLocalProgramsPythonPython36libsite-packagesdiscordclient.py", line 289, in _resolve_destination
                      raise InvalidArgument(fmt.format(destination))
                  discord.errors.InvalidArgument: Destination must be Channel, PrivateChannel, User, or Object. Received NoneType
                  

                  我不明白為什么,我錯過了什么?

                  I don't understand why, what am I missing?

                  推薦答案

                  默認頻道不再存在.這意味著兩件事:

                  1. server.default_channel 可能返回 NoneType.
                  2. 嘗試向 server 發(fā)送消息可能會引發(fā) discord.NotFound.
                  1. server.default_channel may return a NoneType.
                  2. Trying to send a message to server may raise discord.NotFound.

                  這些情況將發(fā)生在 8 月 3 日之后創(chuàng)建的任何服務(wù)器上,或者任何已刪除其默認"頻道的服務(wù)器上.

                  These cases will happen on any servers created after August 3rd, or any servers who have deleted their "default" channel.

                  您需要自己選擇一個頻道,或者要求服務(wù)器為歡迎消息設(shè)置一個頻道.您仍然可以嘗試發(fā)送到服務(wù)器,但請確保您有一個失敗的后備選項.

                  You need to either choose a channel yourself, or ask the server to set a channel for the welcome message. You can still attempt to send to the server, but make sure you have a fall back option if it fails.

                  這篇關(guān)于Discord.py member.server_default_channel 中的參數(shù)無效的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網(wǎng)!

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

                  相關(guān)文檔推薦

                  How to make a discord bot that gives roles in Python?(如何制作一個在 Python 中提供角色的不和諧機器人?)
                  Discord bot isn#39;t responding to commands(Discord 機器人沒有響應(yīng)命令)
                  Can you Get the quot;About mequot; feature on Discord bot#39;s? (Discord.py)(你能得到“關(guān)于我嗎?Discord 機器人的功能?(不和諧.py))
                  message.channel.id Discord PY(message.channel.id Discord PY)
                  How do I host my discord.py bot on heroku?(如何在 heroku 上托管我的 discord.py 機器人?)
                  discord.py - Automaticaly Change an Role Color(discord.py - 自動更改角色顏色)

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

                    • <bdo id='ED25n'></bdo><ul id='ED25n'></ul>

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

                          <tfoot id='ED25n'></tfoot>

                            <legend id='ED25n'><style id='ED25n'><dir id='ED25n'><q id='ED25n'></q></dir></style></legend>
                          1. 主站蜘蛛池模板: 欧美日韩中文字幕在线播放 | 欧美久久久久久久久中文字幕 | 成人av网站在线观看 | 精品国产青草久久久久96 | 欧美成人一区二区三区 | 欧美一区在线视频 | 午夜免费在线电影 | 午夜专区 | 激情网五月天 | 天天操网| 国产精品av久久久久久久久久 | 国产精品久久久久一区二区三区 | 在线免费黄色小视频 | 日本在线一区二区三区 | 国产91久久久久久 | 羞羞视频网页 | 亚洲国产一区二区在线 | www.99久久.com| 中文字幕精品一区久久久久 | 日韩欧美亚洲 | 欧美日日 | 日韩精品一区二区三区免费视频 | 天天曰夜夜操 | 亚洲欧美日韩一区二区 | 精品国产一区二区三区免费 | 免费观看www7722午夜电影 | 91在线资源| 亚洲精品久久久久avwww潮水 | 国产91丝袜在线熟 | 逼逼网| 欧美激情在线观看一区二区三区 | www.狠狠操| 男女羞羞视频在线看 | 一级a性色生活片久久毛片波多野 | 久久免费国产 | 久久久久久久久久久久久9999 | 午夜视频免费网站 | 一区二区在线不卡 | 天天草天天爱 | a视频在线观看 | 超碰av免费 |