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

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

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

        Python - 將頻道添加到類別

        Python - Adding channel to category(Python - 將頻道添加到類別)

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

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

            1. <legend id='IEaTe'><style id='IEaTe'><dir id='IEaTe'><q id='IEaTe'></q></dir></style></legend>
                  <tbody id='IEaTe'></tbody>
                  <bdo id='IEaTe'></bdo><ul id='IEaTe'></ul>
                • 本文介紹了Python - 將頻道添加到類別的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學(xué)習(xí)吧!

                  問題描述

                  我正在嘗試創(chuàng)建一個將在類別中創(chuàng)建的頻道,但我嘗試過的事情沒有奏效

                  I'm trying to create a channel that'll be created in a category but the things I've tried haven't worked

                  代碼很大,所以我不會顯示所有內(nèi)容,只是添加頻道

                  The code is pretty big so I won't be showing everything, just down to adding the channel

                  @client.command()
                  @has_permissions(kick_members=True)
                  async def warn(ctx, member:discord.Member, *, reason=None):
                   arg=reason
                   author=ctx.author
                   guild=ctx.message.guild
                   overwritee = discord.PermissionOverwrite()
                   overwrite = discord.PermissionOverwrite()
                   channel = get(guild.text_channels, name='warn-logs')
                   category = get(guild.category_channels, name='Multi-Logs')
                   mrole = get(ctx.guild.roles, name="Multi-Galaxy")
                  
                   if category is None:
                    category = await guild.create_category_channel("Multi-Logs")
                    overwritee.read_messages = False
                    overwritee.read_message_history = False
                    overwritee.send_messages = False
                    overwrite.read_messages = True
                    overwrite.read_message_history = True
                    overwrite.send_messages = True
                    await channel.set_permissions(guild.default_role, overwrite=overwritee)
                    await channel.set_permissions(mrole, overwrite=overwrite)
                   if channel is None:
                    channel = await guild.create_text_channel('warn-logs')
                    overwritee.read_messages = False
                    overwritee.read_message_history = False
                    overwritee.send_messages = False
                    overwrite.read_messages = True
                    overwrite.read_message_history = True
                    overwrite.send_messages = True
                    await channel.set_permissions(guild.default_role, overwrite=overwritee)
                    await channel.set_permissions(mrole, overwrite=overwrite)
                  

                  它只是創(chuàng)建類別 &頻道彼此分開,因此頻道不在類別中

                  It just creates the category & the channel apart from each other, so the channel isn't in the category

                  推薦答案

                  只需在 category.html#discord.Guild.create_text_channel" rel="nofollow noreferrer">create_text_channel:

                  Simply pass in a category in create_text_channel:

                  if channel is None:
                      channel = await guild.create_text_channel('warn-logs', category=category)
                      #                                                      ^^^^^^^^^^^^^^^^^
                      #                                  keyword-argument––––^^^^^^^^
                      #                                        your-variable––––––––––^^^^^^^^
                  

                  這篇關(guān)于Python - 將頻道添加到類別的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持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 - 自動更改角色顏色)
                  <i id='dZgF4'><tr id='dZgF4'><dt id='dZgF4'><q id='dZgF4'><span id='dZgF4'><b id='dZgF4'><form id='dZgF4'><ins id='dZgF4'></ins><ul id='dZgF4'></ul><sub id='dZgF4'></sub></form><legend id='dZgF4'></legend><bdo id='dZgF4'><pre id='dZgF4'><center id='dZgF4'></center></pre></bdo></b><th id='dZgF4'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='dZgF4'><tfoot id='dZgF4'></tfoot><dl id='dZgF4'><fieldset id='dZgF4'></fieldset></dl></div>
                  <tfoot id='dZgF4'></tfoot>

                    • <small id='dZgF4'></small><noframes id='dZgF4'>

                      <legend id='dZgF4'><style id='dZgF4'><dir id='dZgF4'><q id='dZgF4'></q></dir></style></legend>
                        • <bdo id='dZgF4'></bdo><ul id='dZgF4'></ul>
                            <tbody id='dZgF4'></tbody>
                          1. 主站蜘蛛池模板: www.国产一区| 精品久久久久久久久久久久久久久久久 | 久久日韩精品 | 欧美激情精品久久久久久 | 欧美一区免费在线观看 | 视频1区2区 | 91久久久久久久久久久久久 | 中文字幕在线视频观看 | 日日干干 | 久久久久久久一区 | 欧美一级免费看 | 亚洲欧美一区二区三区国产精品 | 成人免费在线观看 | 亚洲精品www. | 日韩在线观看一区 | 97精品视频在线观看 | 免费观看黄色一级片 | 国产高清久久 | 色视频网站免费 | 国产一区h| 午夜在线小视频 | 东方伊人免费在线观看 | 激情91| 精品综合在线 | 97人人草| 黄色毛片免费 | 国产日韩精品久久 | 伊人一区 | 羞羞视频网站在线观看 | 武道仙尊动漫在线观看 | 欧美激情一区二区 | 日韩欧美不卡 | 午夜影晥| 免费成人高清在线视频 | 91国自产| 黄色av网站在线观看 | 韩日一区二区三区 | 免费亚洲成人 | 欧美电影免费网站 | 久久久久久成人 | 中文字幕在线网 |