lou cjcj
lou cjcj

Reputation: 33

Attach image.png to an embed Discord.py

Is there are any way to Attach Image from file to Discord.py embed "thumbnail"?

embed.set_thumbnail(url=" Attached image")

Upvotes: 1

Views: 1443

Answers (1)

user8903222
user8903222

Reputation:

file = discord.File("file path", filename="image.png")
embed = discord.Embed()
embed.set_thumbnail(url="attachment://image.png")
await messagable.send(file=file, embed=embed)

Upvotes: 2

Related Questions