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']¶
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:
Self
- remove_field(index) Self¶
Remove a field from the embed.
- Parameters:
index (
int) – The index of the field to remove- Return type:
Self- Returns:
Returns the embed you are editing
- class discord_http.embeds.EmbedAuthor(name, url=None, icon_url=None, proxy_icon_url=None) None¶
Bases:
objectRepresents the author section of an embed.
- class discord_http.embeds.EmbedField(name, value, inline=True) None¶
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:
Creates an EmbedFooter from a dict provided by Discord.
- Return type:
Self- Parameters:
data (dict)
- class discord_http.embeds.EmbedMedia(url) None¶
Bases:
objectRepresents a media entry (image, thumbnail, or video) in an embed.
- Parameters:
url (str)