📜  本地图像嵌入 discord py - Python 代码示例

📅  最后修改于: 2022-03-11 14:46:26.045000             🧑  作者: Mango

代码示例1
embed = discord.Embed(title="Title", description="Desc", color=0x00ff00) #creates embed
file = discord.File("path/to/image/file.png", filename="image.png")
embed.set_image(url="attachment://image.png")
await ctx.send(file=file, embed=embed)