【发布时间】:2021-06-17 20:11:54
【问题描述】:
我想在我的电脑上发布一个带有缩略图的嵌入,以及一个本地文件。 每当我尝试运行此代码时,图像都会在嵌入之外发送。
embedVar = discord.Embed(title="title",
description="desc.",
color=0X19A6FF)
file = discord.File("file_location/file.png", filename="image.png")
embedVar.set_thumbnail(url="attachment://file_location/file.png")
await message.channel.send(file=file, embed=embedVar)
【问题讨论】:
标签: python image discord discord.py embed