如何在嵌入式discord.py中使用markdown语法发送图像

时间:2020-10-11 11:18:38

标签: python image markdown discord.py embed

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

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

如何发送降价图片?

1 个答案:

答案 0 :(得分:0)

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

enter image description here

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

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