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

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

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

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

    1. <tfoot id='TDvhL'></tfoot>

    2. <legend id='TDvhL'><style id='TDvhL'><dir id='TDvhL'><q id='TDvhL'></q></dir></style></legend>

        如何創(chuàng)建一個新的私人文本頻道并添加 2 個人?

        How do I create a new private text channel and add 2 people to it?(如何創(chuàng)建一個新的私人文本頻道并添加 2 個人?)
        <legend id='c6Yy8'><style id='c6Yy8'><dir id='c6Yy8'><q id='c6Yy8'></q></dir></style></legend>
          • <bdo id='c6Yy8'></bdo><ul id='c6Yy8'></ul>
              <tfoot id='c6Yy8'></tfoot>

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

                <tbody id='c6Yy8'></tbody>

                • <i id='c6Yy8'><tr id='c6Yy8'><dt id='c6Yy8'><q id='c6Yy8'><span id='c6Yy8'><b id='c6Yy8'><form id='c6Yy8'><ins id='c6Yy8'></ins><ul id='c6Yy8'></ul><sub id='c6Yy8'></sub></form><legend id='c6Yy8'></legend><bdo id='c6Yy8'><pre id='c6Yy8'><center id='c6Yy8'></center></pre></bdo></b><th id='c6Yy8'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='c6Yy8'><tfoot id='c6Yy8'></tfoot><dl id='c6Yy8'><fieldset id='c6Yy8'></fieldset></dl></div>
                  本文介紹了如何創(chuàng)建一個新的私人文本頻道并添加 2 個人?的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學(xué)習(xí)吧!

                  問題描述

                  我正在創(chuàng)建一個不和諧的機器人,用戶將在其中向機器人發(fā)送消息并

                  I'm creating a discord bot where a user will message the bot and

                  1. 機器人將創(chuàng)建一個新的 PRIVATE 文本頻道;最好與機器人在同一臺服務(wù)器上
                  2. 機器人只會將消息傳遞用戶和管理員添加到頻道

                  我已經(jīng)能夠使用 這個問題作為指導(dǎo).我無法創(chuàng)建私人文本頻道或找到允許我這樣做的命令.有誰知道如何在 discord.py 中創(chuàng)建一個私人文本頻道并向其中添加 2 個人(消息用戶和管理員)?

                  I have been able to make a new channel using this question as a guide. I have not been able to make a private text channel or find a command that will allow me to do so. Does anyone know how to create a private text channel in discord.py and add 2 people (messaging user and an admin) to it?

                  推薦答案

                  你可以使用 Guild.create_text_channel 創(chuàng)建具有某些權(quán)限覆蓋的文本頻道.下面創(chuàng)建了一個頻道,該頻道僅對調(diào)用者、機器人和具有管理員"權(quán)限的成員可見.角色(您需要將其更改為適合您服務(wù)器的角色)

                  You can use Guild.create_text_channel to create a text channel with certain permissions overwrites. The below creates a channel that is visible only to the caller, the bot, and members with the "Admin" role (You'll need to change that to the appropriate role for your server)

                  from discord.utils import get
                  
                  @bot.command()
                  async def make_channel(ctx):
                      guild = ctx.guild
                      member = ctx.author
                      admin_role = get(guild.roles, name="Admin")
                      overwrites = {
                          guild.default_role: discord.PermissionOverwrite(read_messages=False),
                          member: discord.PermissionOverwrite(read_messages=True),
                          admin_role: discord.PermissionOverwrite(read_messages=True)
                      }
                      channel = await guild.create_text_channel('secret', overwrites=overwrites)
                  

                  這篇關(guān)于如何創(chuàng)建一個新的私人文本頻道并添加 2 個人?的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持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 - 自動更改角色顏色)
                • <tfoot id='apwhx'></tfoot>

                    <tbody id='apwhx'></tbody>

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

                            <legend id='apwhx'><style id='apwhx'><dir id='apwhx'><q id='apwhx'></q></dir></style></legend>

                            主站蜘蛛池模板: 国产亚洲欧美日韩精品一区二区三区 | 日韩激情免费 | 国产一区二区三区视频 | 色婷婷综合久久久久中文一区二区 | 国产在线视频三区 | 欧美高清视频一区 | 亚洲精品小视频在线观看 | 91精品久久久久久久久久 | 黄 色 毛片免费 | 一区二区三区四区国产精品 | sese视频在线观看 | 国产aa| 久久久资源 | 欧美一区二区三区免费在线观看 | 国产一区二区影院 | 久久精品免费一区二区 | 久热国产在线 | 久久久久久亚洲 | 国产美女一区二区三区 | 日本电影韩国电影免费观看 | 亚洲五码在线 | 国产精品99久久久久久久vr | 国产精品久久久久久亚洲调教 | 精品国产一区二区国模嫣然 | 精品福利av导航 | 国产精品美女久久久久久免费 | 在线成人免费视频 | 国产三级国产精品 | 亚洲精品一区二区三区中文字幕 | 亚洲精品视频在线看 | 自拍偷拍精品 | 欧美二区在线 | 亚洲交性 | 欧美日韩综合精品 | 亚洲精品一二区 | 精品国产一区二区三区久久 | 国产精品美女久久久久久不卡 | 蜜臀网| 国产乱码精品一品二品 | 91美女在线 | 91精品久久久久久久久久 |