airflow.providers.discord.notifications.embed¶
Discord embed structure.
Attributes¶
Classes¶
EmbedFooter. |
|
EmbedField. |
|
EmbedProvider. |
|
EmbedAuthor. |
|
Embed. |
Module Contents¶
Bases:
TypedDictEmbedFooter.
- Parameters:
text – Footer text.
icon_url – Url of footer icon (only supports http(s) and attachments).
proxy_icon_url – A proxy url of footer icon.
- class airflow.providers.discord.notifications.embed.EmbedField[source]¶
Bases:
TypedDictEmbedField.
- Parameters:
name – Name of the field.
value – Value of the field.
inline – Whether or not this field should display inline.
- class airflow.providers.discord.notifications.embed.EmbedProvider[source]¶
Bases:
TypedDictEmbedProvider.
- Parameters:
name – Name of provider
url – Url of provider
- class airflow.providers.discord.notifications.embed.EmbedAuthor[source]¶
Bases:
TypedDictEmbedAuthor.
- Parameters:
name – Name of author.
url – Url of author (only supports http(s)).
icon_url – Url of author icon (only supports http(s) and attachments).
proxy_icon_url – A proxy url of author icon.
- class airflow.providers.discord.notifications.embed.Embed[source]¶
Bases:
TypedDictEmbed.
- Parameters:
title – The text that is placed above the description. Embed titles are limited to 256 characters.
description – The part of the embed where most of the text is contained. Embed descriptions are limited to 2048 characters.
type – Type of embed (always “rich” for webhook embeds).
url – Url of embed.
timestamp – Timestamp (ISO8601) of embed content.
color – Color code of the embed.
footer – Footer information. Footer text is limited to 2048 characters
provider – Add provider information.
author – Adds the author block to the embed, always located at the top of the embed.
fields – Add fields information, max of 25 fields.
- provider: EmbedProvider[source]¶
- author: EmbedAuthor[source]¶
- fields: list[EmbedField][source]¶