【问题标题】:How to reproduce the embed of the discord API default 'help'?如何重现不和谐 API 默认“帮助”的嵌入?
【发布时间】:2020-12-26 21:24:53
【问题描述】:

我在 python 中使用 discord API 创建了一个机器人。

但是当我使用嵌入时,我无法控制它的宽度,而且由于我使用它们来创建列,有时其中一个会变成行并且格式被破坏,而该区域甚至不占用页面的一半.The 4th column goes to the next row while the width of the embed does not exceed half the width of the page

显然,无法选择宽度。但是,默认实现的帮助命令很大,我该怎么做? The default help uses what appears to be a much larger embed

【问题讨论】:

    标签: python embed discord.py


    【解决方案1】:

    默认的帮助命令只是一个代码块,您可以通过在文本的开头和结尾添加 3 个反引号来创建一个。

    Value 1         Value            4812
    Value 2         Value            4812
    Value 3         Value            4812
    Value 4         Value            4807
    Value 5         Value            4806
    Value 6         Value            4803
    Value 7         Value            4802
    

    【讨论】:

    • 感谢您的回复。我只是想念能够用粗体写列标题
    • 不幸的是代码块禁用了 Markdown 解析,您只能通过在代码块周围添加 ** 来使整个代码块变为粗体。
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2010-09-16
    • 2022-01-21
    • 2012-09-28
    • 1970-01-01
    • 2022-10-23
    • 2018-11-29
    • 1970-01-01
    相关资源
    最近更新 更多