discord

Reference for the `discord` action.

discord · action · run nanook doc discord for the same content in your terminal.

Posts alert embeds to a Discord channel via webhook.

Options

OptionTypeDefaultDescription
urlstringrequired 🔒target webhook URL
methodenumPOSTHTTP method (one of: GET, POST, PUT, PATCH, DELETE)
retriesstring0number of retries on failure
backoffstring1sretry backoff

Examples

Discord channel via webhook

[channels.ops]
type = "discord"
[channels.ops.opts]
url = "${DISCORD_WEBHOOK_URL}"

Retry on transient failures

[channels.ops]
type = "discord"
[channels.ops.opts]
url     = "${DISCORD_WEBHOOK_URL}"
retries = 3
backoff = 1500