Embeds¶
discord_http.embeds module¶
- class discord_http.embeds.Embed(*, title=None, description=None, colour=None, color=None, url=None, timestamp=None)¶
Bases:
objectRepresents a Discord embed.
- Parameters:
- type: Literal['rich', 'image', 'video', 'gifv', 'article', 'link', 'poll_result', 'components']¶
The type of the embed. Defaults to “rich”. See EmbedTypes for all options.
The footer of the embed, if any.
- author: EmbedAuthor | None¶
The author of the embed, if any.
- image: EmbedMedia | None¶
The image of the embed, if any.
- thumbnail: EmbedMedia | None¶
The thumbnail of the embed, if any.
- fields: list[EmbedField]¶
The fields of the embed, if any.
- provider: EmbedProvider | None¶
The provider of the embed, only sent by Discord.
- video: EmbedMedia | None¶
The video of the embed, only sent by Discord.
- property flags: EmbedFlags¶
The flags of the embed.
Set the footer of the embed.
Remove the footer from the embed.
- Return type:
- class discord_http.embeds.EmbedAuthor(name, url=None, icon_url=None, proxy_icon_url=None)¶
Bases:
objectRepresents the author section of an embed.
- class discord_http.embeds.EmbedField(name, value, inline=True)¶
Bases:
objectRepresents a field entry in an embed.
Bases:
objectRepresents the footer section of an embed.
Returns a dict representation of the embed footer.
- Return type:
- class discord_http.embeds.EmbedMedia(url)¶
Bases:
objectRepresents a media entry (image, thumbnail, or video) in an embed.
- Parameters:
url (str)