Reputation: 263
I am making a discord bot in using discord.py but I don't know how to send gifs in an embed. I'm trying to make commands like hug, kiss , boop etc. How would I do this?
embed1 = discord.Embed(title="this is a title", description="this is a description!", color=0x00ff00,)
await message.channel.send(embed = embed1)```
Upvotes: 0
Views: 1215
Reputation: 2474
You can use the set_image()
function passing an url to your image to set the embed image to the one you want.
embed = discord.Embed(title="Title", description="Description", color=0x00ff00)
embed.add_field(name="Field1", value="test", inline=False)
embed.set_image(url="https://url-to-your-picture.gif")
await message.channel.send(embed=embed)
References:
Upvotes: 3