Answers for "add a image to an embed discord.py"

5

local image embed discord py

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)
Posted by: Guest on April-18-2021

Code answers related to "add a image to an embed discord.py"

Python Answers by Framework

Browse Popular Code Answers by Language