airflow.providers.discord.notifications.discord¶
Attributes¶
Classes¶
Discord BaseNotifier. |
Module Contents¶
- airflow.providers.discord.notifications.discord.ICON_URL: str = 'https://raw.githubusercontent.com/apache/airflow/main/airflow-core/src/airflow/ui/public/pin_100.png'[source]¶
- class airflow.providers.discord.notifications.discord.DiscordNotifier(discord_conn_id='discord_webhook_default', text='', username='Airflow', avatar_url=ICON_URL, tts=False, embed=None, **kwargs)[source]¶
Bases:
airflow.providers.common.compat.notifier.BaseNotifierDiscord BaseNotifier.
- Parameters:
discord_conn_id (str) – Http connection ID with host as “https://discord.com/api/” and default webhook endpoint in the extra field in the form of {“webhook_endpoint”: “webhooks/{webhook.id}/{webhook.token}”}
text (str) – The content of the message
username (str) – The username to send the message as. Optional
avatar_url (str) – The URL of the avatar to use for the message. Optional
tts (bool) – Text to speech.
embed (airflow.providers.discord.notifications.embed.Embed | None) – Discord embed object. See: https://discord.com/developers/docs/resources/message#embed-object-embed-author-structure
- avatar_url = 'https://raw.githubusercontent.com/apache/airflow/main/airflow-core/src/airflow/ui/public/pin_100.png'[source]¶
- property hook: airflow.providers.discord.hooks.discord_webhook.DiscordWebhookHook[source]¶
Discord Webhook Hook.
- property hook_async: airflow.providers.discord.hooks.discord_webhook.DiscordWebhookAsyncHook[source]¶
Discord Webhook Async Hook.