<legend id='DcBRg'><style id='DcBRg'><dir id='DcBRg'><q id='DcBRg'></q></dir></style></legend>
      <tfoot id='DcBRg'></tfoot>

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

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

        • <bdo id='DcBRg'></bdo><ul id='DcBRg'></ul>
      1. Message discord.py中的可点击链接

        Clickable link inside message discord.py(Message discord.py中的可点击链接)
          <tbody id='wLaP6'></tbody>

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

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

                  <bdo id='wLaP6'></bdo><ul id='wLaP6'></ul>

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

                • <legend id='wLaP6'><style id='wLaP6'><dir id='wLaP6'><q id='wLaP6'></q></dir></style></legend>
                  本文介绍了Message discord.py中的可点击链接的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  我希望我的机器人将消息发送到聊天中,如下所示:

                  await ctx.send("This country is not supported, you can ask me to add it here")
                  

                  但是要使";here";变成可点击的链接,在HTML中我会这样做,对吗?

                  <a href="https://www.youtube.com/" > This country is not supported, you can ask me to add it here </a>
                  

                  如何在python中完成?

                  推荐答案

                  正如另一个答案所解释的,您不能在普通邮件中添加超链接,但可以在嵌入中添加。我不明白您为什么不想对错误消息使用嵌入式,特别是考虑到它添加了更多功能,所以您应该考虑使用它。

                  embed = discord.Embed()
                  embed.description = "This country is not supported, you can ask me to add it [here](your_link_goes_here)."
                  await ctx.send(embed=embed)
                  
                  您可以随意摆弄Embed&;添加一些字段、标题、颜色以及您想要做的任何其他操作以使其看起来更好。有关API docs的更多信息。

                  这篇关于Message discord.py中的可点击链接的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

                  相关文档推荐

                  GUI Freezes while downloading PyQt5 and Pytube(GUI在下载PyQt5和Pytube时冻结)
                  How to solve memory issues while multiprocessing using Pool.map()?(如何解决使用Pool.map()进行多处理时的内存问题?)
                  Python - How to use FastAPI and uvicorn.run without blocking the thread?(Python-如何使用FastAPI和uvicorn.run而不阻塞线程?)
                  How to increment a shared counter from multiple processes?(如何从多个进程递增共享计数器?)
                  Using pika, how to connect to rabbitmq running in docker, started with docker-compose with external network?(使用pika,如何连接运行在docker中的rabbitmq,从docker开始-与外部网络连接?)
                  How to use .rolling() on each row of a Pandas dataframe?(如何对 pandas 数据帧的每一行使用.roll()?)
                • <i id='fhXfJ'><tr id='fhXfJ'><dt id='fhXfJ'><q id='fhXfJ'><span id='fhXfJ'><b id='fhXfJ'><form id='fhXfJ'><ins id='fhXfJ'></ins><ul id='fhXfJ'></ul><sub id='fhXfJ'></sub></form><legend id='fhXfJ'></legend><bdo id='fhXfJ'><pre id='fhXfJ'><center id='fhXfJ'></center></pre></bdo></b><th id='fhXfJ'></th></span></q></dt></tr></i><div id='fhXfJ'><tfoot id='fhXfJ'></tfoot><dl id='fhXfJ'><fieldset id='fhXfJ'></fieldset></dl></div>
                  • <bdo id='fhXfJ'></bdo><ul id='fhXfJ'></ul>

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

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