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

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

<tfoot id='gzB3q'></tfoot>

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

        不和諧機(jī)器人如何在不和諧重寫中加入語音頻道

        How a discord bot can join a voice channel in discord rewrite?(不和諧機(jī)器人如何在不和諧重寫中加入語音頻道?)

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

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

                    <tbody id='oJa9o'></tbody>
                  <tfoot id='oJa9o'></tfoot>
                  <i id='oJa9o'><tr id='oJa9o'><dt id='oJa9o'><q id='oJa9o'><span id='oJa9o'><b id='oJa9o'><form id='oJa9o'><ins id='oJa9o'></ins><ul id='oJa9o'></ul><sub id='oJa9o'></sub></form><legend id='oJa9o'></legend><bdo id='oJa9o'><pre id='oJa9o'><center id='oJa9o'></center></pre></bdo></b><th id='oJa9o'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='oJa9o'><tfoot id='oJa9o'></tfoot><dl id='oJa9o'><fieldset id='oJa9o'></fieldset></dl></div>
                  本文介紹了不和諧機(jī)器人如何在不和諧重寫中加入語音頻道?的處理方法,對(duì)大家解決問題具有一定的參考價(jià)值,需要的朋友們下面隨著小編來一起學(xué)習(xí)吧!

                  問題描述

                  我想讓我的 discord 機(jī)器人在我輸入 !join 時(shí)連接到我所在的語音頻道.我試圖用下面的代碼來做,但我得到了這個(gè)錯(cuò)誤:bot: 'Bot' 的 BotInstance 沒有 'voice_client_int' memberpylint(no-member)

                  I want to make my discord bot to connect to the voice channel I am when I type !join. i have tried to do it with the following code but i got this error: bot: BotInstance of 'Bot' has no 'voice_client_int' memberpylint(no-member)

                  我發(fā)現(xiàn)我的代碼與 rewrite discord 版本不兼容.

                  i found that my code is not compatible with the rewrite discord version.

                  @bot.command(pass_context = True)
                  async def join(ctx):
                          channel = ctx.message.author.voice.voice_channel
                          await bot.join_voice_channel(channel)
                  @bot.command(pass_context = True)
                  async def leave(ctx):
                          server = ctx.message.server
                          voice_client = bot.voice_client_int(server)
                          await voice_client.disconnect()
                  

                  有人可以幫我嗎?

                  推薦答案

                  如遷移頁面所述,在重寫版本中,語音連接現(xiàn)在是 VoiceChannel 模型的一種方法.pass_context 也被棄用,因?yàn)楝F(xiàn)在總是傳遞上下文.

                  As stated in the migrating page, in the rewrite version, the voice connection is now a method of the VoiceChannel model. The pass_context is also deprecated as context is now always passed.

                  現(xiàn)在看起來像這樣:

                  @bot.command()
                  async def join(ctx):
                      channel = ctx.author.voice.channel
                      await channel.connect()
                  @bot.command()
                  async def leave(ctx):
                      await ctx.voice_client.disconnect()
                  

                  當(dāng)然,這個(gè)過于簡(jiǎn)化的版本缺少錯(cuò)誤處理.

                  Of course this oversimplified version lacks error handling.

                  這篇關(guān)于不和諧機(jī)器人如何在不和諧重寫中加入語音頻道?的文章就介紹到這了,希望我們推薦的答案對(duì)大家有所幫助,也希望大家多多支持html5模板網(wǎng)!

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

                  相關(guān)文檔推薦

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

                  <tfoot id='CUyVF'></tfoot>

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

                            主站蜘蛛池模板: 日本成人在线网址 | 久久久91精品国产一区二区三区 | 日韩国产精品一区二区三区 | 精品乱码一区二区 | 久久国产精品免费视频 | 国产成人在线视频播放 | 羞羞网站在线观看 | 日本精品视频在线观看 | 欧美在线视频一区 | 久久美女网 | 韩日精品在线观看 | 福利网站导航 | 四虎永久免费在线 | 国产成人影院 | 国产在视频一区二区三区吞精 | 欧美a级成人淫片免费看 | 国产精品精品视频一区二区三区 | 色毛片 | 成人一区二区视频 | 亚洲欧美日韩电影 | 天天天天天天天干 | 欧美日本韩国一区二区 | 亚洲精品美女 | 伊人艹| 嫩草最新网址 | 国产亚洲精品美女久久久久久久久久 | 在线视频 亚洲 | 在线观看成人精品 | 国产精品久久国产精品 | 欧美精品一区二区三区一线天视频 | 久久成人亚洲 | 国产成人精品久久久 | 中文字幕亚洲在线 | 亚洲高清视频在线 | 一区二区在线 | 日韩久久久久久 | 久久久久久高潮国产精品视 | 99精品视频在线观看免费播放 | 羞羞视频免费在线观看 | 亚洲精品视频一区二区三区 | 欧美一区二区三区日韩 |