Answers for "set image in 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

Python Answers by Framework

Browse Popular Code Answers by Language