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

    <tfoot id='r4pO7'></tfoot>
  2. <legend id='r4pO7'><style id='r4pO7'><dir id='r4pO7'><q id='r4pO7'></q></dir></style></legend>

    1. 自定义表情符号和动画表情符号不起作用 [disco

      时间:2023-09-09

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

      <tfoot id='m6H9l'></tfoot><legend id='m6H9l'><style id='m6H9l'><dir id='m6H9l'><q id='m6H9l'></q></dir></style></legend>
        <tbody id='m6H9l'></tbody>

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

              • 本文介绍了自定义表情符号和动画表情符号不起作用 [discord.py-rewrite]的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

                问题描述

                我最近构建了一个简单的命令来测试自定义表情符号和动画表情符号的格式

                I recently built a simple command to test the format of custom emoji's and animated emoji's

                这是命令的内容

                @bot.command()
                async def say(ctx, *, text):
                await ctx.send("<:ono:521148278079881219> You said %s" % text)
                

                但输出消息没有发送自定义表情符号,而是发送消息

                But the output message didn't send the custom emoji, instead it messaged

                :ono: You said hello(the text i messaged in chat)
                

                任何帮助将不胜感激.

                推荐答案

                你可以使用 Client.get_emoji 获取 Emoji 对象,然后使用它来构建您的字符串

                You can use Client.get_emoji to get the Emoji object, then use that to build your string

                @bot.command()
                async def say(ctx, *, text):
                    ono = bot.get_emoji(521148278079881219)
                    await ctx.send(f"{ono} You said {text}")
                

                这篇关于自定义表情符号和动画表情符号不起作用 [discord.py-rewrite]的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持html5模板网!

                上一篇:如何让我的 discord.py 重写机器人向消息作者发送 下一篇:如何让我的 Python discord 机器人在加入时赋予角色

                相关文章

                最新文章

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

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

                    <tfoot id='pYKTW'></tfoot>