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, which can be “rich”, “image”, “video”, “gifv”, “article”, “link”, or “poll_result”. Defaults to “rich”.
The footer of the embed, if any.
- remove_colour() Self¶
Remove the colour from the embed.
- Return type:
Self- Returns:
Returns the embed you are editing
Set the footer of the embed.
Remove the footer from the embed.
- Return type:
Self- Returns:
Returns the embed you are editing
- remove_author() Self¶
Remove the author from the embed.
- Return type:
Self- Returns:
Returns the embed you are editing
- remove_image() Self¶
Remove the image from the embed.
- Return type:
Self- Returns:
Returns the embed you are editing
- remove_thumbnail() Self¶
Remove the thumbnail from the embed.
- Return type:
Self- Returns:
Returns the embed you are editing
- 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