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

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

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

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

    1. <legend id='HK4kC'><style id='HK4kC'><dir id='HK4kC'><q id='HK4kC'></q></dir></style></legend>
      1. <tfoot id='HK4kC'></tfoot>

        如何將 discord.py 幫助命令放入嵌入中?

        How do I put discord.py help command in an embed?(如何將 discord.py 幫助命令放入嵌入中?)
          <tbody id='Bh0kW'></tbody>

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

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

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

                <tfoot id='Bh0kW'></tfoot>

                1. 本文介紹了如何將 discord.py 幫助命令放入嵌入中?的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

                  問題描述

                  所以,我目前有一個使用 discord.py 運行的 discord 機器人,如您所知,discord.py 帶有自己的幫助命令(所以我不必自己制作).它非常有用,我將我的命令分成了 cogs/categories.它確實有助于簡化,因為現在我不必編寫自己的幫助命令.

                  So, I currently have a discord bot running with discord.py, and as you know, discord.py comes with its own help command (so I don't have to make my own). It's very useful, and I have my commands separated into cogs/categories. It really helps with simplicity, because now I don't have to write my own help command.

                  問題是,當我運行幫助命令時,它出現在一個巨大的代碼塊中,如下所示:我聽到一些用戶抱怨說這在視覺上并不吸引人,當我添加更多命令時,它會填滿屏幕.有沒有簡單的方法(無需編寫我自己的幫助命令)將所有這些移動到嵌入中?也許復制此幫助命令的輸出,并將其移動到嵌入中?如果沒有,沒關系,我會編寫自己的幫助命令,但我只是想尋找一種簡單的方法來做到這一點,而不會弄臟我的代碼.與往常一樣,提前感謝您.

                  The problem is, when I run the help command, it comes to me in a giant code block, like so: I have heard some complaints from users that this isn't exactly visually appealing, and as I add more commands, it fills up the screen. Is there simple way (without writing my own help command) to move all of this onto an embed? Maybe copy the output of this help command, and move that onto an embed? If not, it's ok, I'll write my own help command, but I'm just trying to look for a simple way to do this without getting my hands dirty coding. As always, thank you in advance.

                  如果需要,這里是我的代碼示例:

                  In case it is needed, here is sample from my code:

                  import discord
                  from discord.ext import commands, tasks
                  
                  TOKEN = "INSERT TOKEN HERE"
                  client = commands.Bot(command_prefix="wurf ", case_insensitive=True)
                  
                  #Utility Category
                  class Utility(commands.Cog):
                      def __init__(self, client):
                          self.client = client
                          
                      @commands.command(
                          help="Shows the ping/latency of the bot in miliseconds.",
                          brief="Shows ping."
                      )
                      async def ping(self, ctx):
                          if round(client.latency * 1000) <= 50:
                              embed=discord.Embed(title="PING", description=f":ping_pong: Pingpingpingpingping! The ping is **{round(client.latency *1000)}** milliseconds!", color=0x44ff44)
                          elif round(client.latency * 1000) <= 100:
                              embed=discord.Embed(title="PING", description=f":ping_pong: Pingpingpingpingping! The ping is **{round(client.latency *1000)}** milliseconds!", color=0xffd000)
                          elif round(client.latency * 1000) <= 200:
                              embed=discord.Embed(title="PING", description=f":ping_pong: Pingpingpingpingping! The ping is **{round(client.latency *1000)}** milliseconds!", color=0xff6600)
                          else:
                              embed=discord.Embed(title="PING", description=f":ping_pong: Pingpingpingpingping! The ping is **{round(client.latency *1000)}** milliseconds!", color=0x990000)
                          await ctx.send(embed=embed)
                  client.add_cog(Utility(client))
                  client.run(TOKEN)
                  

                  推薦答案

                  您必須使用 Bot.help_command

                  這是一個簡單的嵌入實現,我繼承自 MinimalHelpCommand

                  Here is a simple embed implementation I threw together inheriting from MinimalHelpCommand

                  class MyHelpCommand(commands.MinimalHelpCommand):
                      async def send_pages(self):
                          destination = self.get_destination()
                          e = discord.Embed(color=discord.Color.blurple(), description='')
                          for page in self.paginator.pages:
                              e.description += page
                          await destination.send(embed=e)
                  
                  client.help_command = MyHelpCommand()
                  

                  這篇關于如何將 discord.py 幫助命令放入嵌入中?的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!

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

                  相關文檔推薦

                  How to make a discord bot that gives roles in Python?(如何制作一個在 Python 中提供角色的不和諧機器人?)
                  Discord bot isn#39;t responding to commands(Discord 機器人沒有響應命令)
                  Can you Get the quot;About mequot; feature on Discord bot#39;s? (Discord.py)(你能得到“關于我嗎?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 - 自動更改角色顏色)

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

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

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

                            <tbody id='ZGN4e'></tbody>
                          1. <tfoot id='ZGN4e'></tfoot>
                            主站蜘蛛池模板: 自拍偷拍精品 | 成人午夜电影网 | 在线观看中文视频 | 国产精品久久久久久久久污网站 | 久久在线看 | 福利视频一区二区 | 久久久久成人精品 | 亚洲一区二区精品视频在线观看 | 影音先锋欧美资源 | 久久久999免费视频 999久久久久久久久6666 | 久久99精品久久久久久秒播九色 | 欧洲一级毛片 | 中文字幕日韩欧美一区二区三区 | 久久三级av | 午夜免费视频观看 | 午夜精品一区 | 成人福利视频 | 久久尤物免费一区二区三区 | 波多野结衣一区二区 | 欧洲av在线 | 精品免费视频 | 国产精品免费一区二区三区 | 欧美美女一区二区 | 一区二区三区播放 | 2018国产大陆天天弄 | 一区二区高清 | 国产一级在线观看 | 国产在视频一区二区三区吞精 | 久久久久国产一区二区三区 | 亚洲一区导航 | 欧美精品一二三区 | 亚洲第一网站 | 密桃av | 福利影院在线看 | 奇米视频777 | 国产精品免费看 | 亚洲国产精品成人综合久久久 | 国产精品极品美女在线观看免费 | 51ⅴ精品国产91久久久久久 | 日韩区| 一区二区三区四区免费在线观看 |