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

        <bdo id='3oZLj'></bdo><ul id='3oZLj'></ul>
      <tfoot id='3oZLj'></tfoot>

      <small id='3oZLj'></small><noframes id='3oZLj'>

    1. <legend id='3oZLj'><style id='3oZLj'><dir id='3oZLj'><q id='3oZLj'></q></dir></style></legend>
    2. <i id='3oZLj'><tr id='3oZLj'><dt id='3oZLj'><q id='3oZLj'><span id='3oZLj'><b id='3oZLj'><form id='3oZLj'><ins id='3oZLj'></ins><ul id='3oZLj'></ul><sub id='3oZLj'></sub></form><legend id='3oZLj'></legend><bdo id='3oZLj'><pre id='3oZLj'><center id='3oZLj'></center></pre></bdo></b><th id='3oZLj'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='3oZLj'><tfoot id='3oZLj'></tfoot><dl id='3oZLj'><fieldset id='3oZLj'></fieldset></dl></div>
      1. 如何讓我的命令只禁止一個(gè)公會(huì)中的用戶

        How do I make my command only ban the user in one guild(如何讓我的命令只禁止一個(gè)公會(huì)中的用戶)
        • <bdo id='iiKQp'></bdo><ul id='iiKQp'></ul>
              <tbody id='iiKQp'></tbody>

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

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

              1. <tfoot id='iiKQp'></tfoot>
                  本文介紹了如何讓我的命令只禁止一個(gè)公會(huì)中的用戶的處理方法,對(duì)大家解決問題具有一定的參考價(jià)值,需要的朋友們下面隨著小編來一起學(xué)習(xí)吧!

                  問題描述

                    @commands.command(aliases=['hban'])
                    @commands.has_permissions(manage_messages=True)
                    @commands.cooldown(1,5,BucketType.user)
                    async def hackban(self, ctx, usid:int):
                        for guild in ctx.bot.guilds:
                            await guild.ban(discord.Object(id=usid))
                            embed = discord.Embed(title="<:Checkmark:837279790682734593>  "+f"Successfully hack banned {usid}", color=discord.Color.dark_purple())
                            await ctx.send(embed=embed)
                  

                  這個(gè)命令在它所在的所有公會(huì)中禁止用戶,我如何使它只禁止我使用該命令的公會(huì)中的用戶?

                  This command bans the user in all guilds it is in, how do I make it only ban the user in the guild I used the command in?

                  推薦答案

                  只需去掉for循環(huán),使用ctx.guild作為公會(huì)

                  Simply remove the for-loop and use ctx.guild as the guild

                  @commands.command(aliases=['hban'])
                  @commands.has_permissions(manage_messages=True)
                  @commands.cooldown(1,5,BucketType.user)
                  async def hackban(self, ctx, usid:int):
                     await ctx.guild.ban(discord.Object(id=usid))   
                     embed = discord.Embed(title="<:Checkmark:837279790682734593>  "+f"Successfully hack banned {usid}", color=discord.Color.dark_purple())
                     await ctx.send(embed=embed)
                  

                  這篇關(guān)于如何讓我的命令只禁止一個(gè)公會(huì)中的用戶的文章就介紹到這了,希望我們推薦的答案對(duì)大家有所幫助,也希望大家多多支持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?(如何制作一個(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)更改角色顏色)

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

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

                        <legend id='uNuC1'><style id='uNuC1'><dir id='uNuC1'><q id='uNuC1'></q></dir></style></legend>
                        • <bdo id='uNuC1'></bdo><ul id='uNuC1'></ul>
                            <tbody id='uNuC1'></tbody>
                          • 主站蜘蛛池模板: 日韩精品一区二区三区四区 | 91人人爽| 亚洲第一天堂无码专区 | 国产精品久久久久久久久久免费 | 亚洲国产精品一区二区三区 | 国产高清亚洲 | 午夜性视频| 国产精品日韩欧美一区二区三区 | 在线精品观看 | 91久久精品一区二区三区 | 黄视频网站免费观看 | 欧美综合一区二区 | 久草中文在线 | 亚洲国产成人精品女人 | av免费网站在线观看 | 久久久精品视频一区二区三区 | 一二三区视频 | 日本久久久久久久久 | 国产精品一区一区 | 久久国产精品-国产精品 | 四虎最新地址 | 毛片久久久| 一级黄色录像毛片 | 亚洲综合区 | 国产精品毛片久久久久久久 | 中文字幕一区二区三区四区五区 | 视频一区二区三区在线观看 | 国产精品久久99 | 91在线播 | 91日日| 国产黄色麻豆视频 | 蜜臀av日日欢夜夜爽一区 | 欧美精品啪啪 | 国产在线区 | av天天操 | 91精品国产一区二区在线观看 | 日韩欧美三级 | 日本中文字幕在线观看 | 亚洲一av | 国产精品三级 | 久久久久国产一区二区三区 |