Airflow Summit 2025 is coming October 07-09. Register now for early bird ticket!

airflow.providers.discord.notifications.discord

Attributes

ICON_URL

Classes

DiscordNotifier

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='This is a default message', username='Airflow', avatar_url=ICON_URL, tts=False)[source]

Bases: airflow.providers.common.compat.notifier.BaseNotifier

Discord 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.

template_fields = ('discord_conn_id', 'text', 'username', 'avatar_url', 'tts')[source]
discord_conn_id = 'discord_webhook_default'[source]
text = 'This is a default message'[source]
username = 'Airflow'[source]
avatar_url = 'https://raw.githubusercontent.com/apache/airflow/main/airflow-core/src/airflow/ui/public/pin_100.png'[source]
tts = False[source]
property hook: airflow.providers.discord.hooks.discord_webhook.DiscordWebhookHook[source]

Discord Webhook Hook.

notify(context)[source]

Send a message to a Discord channel.

Was this entry helpful?