久久久久久久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社区 | 欧美在线精品一区 | 国产高清视频一区 | 午夜男人视频 | 亚洲精品久 | 毛片网在线观看 | aaa精品 | 狠狠综合网 | 欧美一区在线视频 | 91精品国产自产精品男人的天堂 | 中文字幕精品视频 | av在线影院| 亚洲综合首页 | 一区二区中文 | 欧美黄色一级毛片 | 成人精品国产一区二区4080 | 亚洲成人激情在线观看 | 美女视频h | 国产成人在线一区二区 | 国产精品成人一区二区三区 | 国产成人麻豆免费观看 | 成人做爰www免费看视频网站 | 久久一区二区三区四区 | 91久久精品日日躁夜夜躁国产 | 波多野结衣一区二区三区在线观看 | 91精品国产自产精品男人的天堂 | 国产精品免费高清 | 亚洲精品成人网 | 97人澡人人添人人爽欧美 | 日韩av免费在线电影 | 亚洲一区二区电影在线观看 | 国产精品日韩 | 国产精品高清在线 | a级黄色网| 国产精品96久久久久久 | 蜜桃臀av一区二区三区 | 欧美激情综合网 | 欧美成人精品一区二区三区 |