<legend id='ehL3p'><style id='ehL3p'><dir id='ehL3p'><q id='ehL3p'></q></dir></style></legend>
        <bdo id='ehL3p'></bdo><ul id='ehL3p'></ul>
    1. <i id='ehL3p'><tr id='ehL3p'><dt id='ehL3p'><q id='ehL3p'><span id='ehL3p'><b id='ehL3p'><form id='ehL3p'><ins id='ehL3p'></ins><ul id='ehL3p'></ul><sub id='ehL3p'></sub></form><legend id='ehL3p'></legend><bdo id='ehL3p'><pre id='ehL3p'><center id='ehL3p'></center></pre></bdo></b><th id='ehL3p'></th></span></q></dt></tr></i><div id='ehL3p'><tfoot id='ehL3p'></tfoot><dl id='ehL3p'><fieldset id='ehL3p'></fieldset></dl></div>
    2. <small id='ehL3p'></small><noframes id='ehL3p'>

      <tfoot id='ehL3p'></tfoot>

    3. Discord.py(更改机器人的文本颜色)

      时间:2023-10-10

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

        <tfoot id='ZRKzR'></tfoot>
          • <small id='ZRKzR'></small><noframes id='ZRKzR'>

              <bdo id='ZRKzR'></bdo><ul id='ZRKzR'></ul>
              <legend id='ZRKzR'><style id='ZRKzR'><dir id='ZRKzR'><q id='ZRKzR'></q></dir></style></legend>
                本文介绍了Discord.py(更改机器人的文本颜色)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

                问题描述

                我已经搜索了网络,但没有找到答案.

                I have searched the web but found no answer.

                我为我的不和谐机器人创建了一个嵌入,我知道如何设置左侧栏的颜色,但我如何更改机器人发送的文本的颜色?

                I created an embed for my discord bot and i know how to set the color of the bar on the left but how can i change the color of the text the bot sends?

                推荐答案

                我能找到的唯一解决方案(之前也有同样的问题)是使用语法突出显示

                The only solution I've been able to find for this (have had the same question before) was using syntax highlighting

                ```css
                green text
                ```
                

                您可以在此 github gist

                希望对您有所帮助,我不知道任何其他真正颜色"的解决方案.不使用语法高亮的文本.

                Hope it helps, I don't know about any other solution to really "color" texts without using syntax highlighting.

                更新:关于OP的评论.

                UPDATE: Regarding comment from OP.

                这是我能够将其包含到嵌入中的一种方式.

                This was a way I've been able to include it into an embed.

                async def test(ctx, *args):
                    retStr = str("""```css
                This is some colored Text```""")
                    embed = discord.Embed(title="Random test")
                    embed.add_field(name="Name field can't be colored as it seems",value=retStr)
                    await ctx.send(embed=embed)
                

                制作了这个:

                没有嵌入:

                async def test(ctx, *args):
                    retStr = str("""```css
                This is some colored Text```""")
                    await ctx.send(retStr)
                

                制作了这个:

                在您选择的语言之后写一个新行 很重要,否则它无法识别语言声明

                It is important to write a new line after the language you choose for syntax highlighting otherwise it doesn't recognize it language declaration

                这篇关于Discord.py(更改机器人的文本颜色)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持html5模板网!

                上一篇:运行机器人示例代码时,我收到此错误 下一篇:如何使用带代理的不和谐 python 机器人?

                相关文章

                最新文章

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

              • <tfoot id='zpSd0'></tfoot>

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

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