Skip to content
Discussion options

You must be logged in to vote

You can construct an Embed by setting the attributes listed on the docs for them.

A brief example is here:

embed = discord.Embed(url="https://www.google.com/", title="Google", colour=discord.Colour.default())
embed.add_field(name="Field 1", value="Value 1")
embed.add_field(name="Field 2", value="Value 2")
embed.timestamp = datetime.datetime.utcnow()
embed.set_footer(text="This is a footer.")

await channel.send(embed=embed)

The example above looks like this.
This is but a small example of an embed. There are more things you can set and use, so I recommend experimenting with them.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@ambitaah
Comment options

Answer selected by Rapptz
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants