【问题标题】:How can i send an image using markdown syntax in an embed discord.py如何在嵌入 discord.py 中使用 markdown 语法发送图像
【发布时间】:2021-01-25 21:56:03
【问题描述】:

我有这个代码来显示我的项目状态:

def status(branch):
    embed=discord.Embed(title="Wng status", description=f"**On branch : {branch} :**\n\n- Windows : ![WinStatus](https://img.shields.io/github/workflow/status/Wmanage/wng/Rust/{branch})\n- *nix : ![WinStatus](https://img.shields.io/github/workflow/status/Wmanage/wng/RustUnix/{branch})", color=0xffaa00)
    embed.set_footer(text="w/status • Status of wng project")
    return embed

但是当我发送它时它不显示图像: picture

我如何发送降价图片?

【问题讨论】:

    标签: python image markdown discord.py embed


    【解决方案1】:

    只有 4 个可能的位置可以将图像添加到您的嵌入中。

    您可以考虑将照片添加为您的公会中的表情符号,并按如下方式使用它们

    branch_emoji=discord.utils.get(ctx.guild.emojis, name="NAME_HERE")
    

    【讨论】:

    • 问题在于它是动态照片,适用于 ghub 动作:/
    • 那么你可能只是很多嵌入,每个都有一个分支。
    猜你喜欢
    • 2023-03-09
    • 1970-01-01
    • 1970-01-01
    • 2021-02-05
    • 1970-01-01
    • 2021-10-22
    • 1970-01-01
    • 2020-05-31
    • 2021-09-07
    相关资源
    最近更新 更多