Skip to content

Discord Notify

Overview

The Discord Notify node sends a message to a Discord channel using an incoming webhook URL. Use it to broadcast battle results, execution status updates, or workflow alerts to a Discord server. The node requires a valid webhook URL configured in the node or referenced from a credential; if the webhook call fails, execution is routed to the error output so downstream error-handling nodes can respond. Message content supports static text or dynamic interpolation from upstream node outputs.

Configuration

FieldTypeRequiredDescription
webhookUrlstringYesThe Discord incoming webhook URL (e.g. https://discord.com/api/webhooks/{id}/{token}). Obtain from Discord Server Settings → Integrations → Webhooks.
contentstringYesThe message text to send. Supports template variables from upstream outputs (e.g. 'Battle {{battleId}} finished — winner: {{winner}}').
usernamestringNoOverride the display name of the webhook bot for this message. Defaults to the name set on the webhook in Discord.
avatarUrlstringNoURL of an image to use as the bot avatar for this message. Overrides the webhook's default avatar.
embedTitlestringNoIf set, wraps the message in a Discord embed with this string as the embed title.
embedColornumberNoInteger color value for the embed sidebar (e.g. 5814783 for #58B9FF). Only applied when embedTitle is set.
failOnErrorbooleanNoWhen true, routes execution to the error output if Discord returns a non-2xx status. Defaults to true.

Inputs

PortTypeDescription
inputanyTriggers the node and provides the execution context. Template variables in content and embedTitle are resolved from this payload.

Outputs

PortTypeDescription
outputanyPasses the incoming payload through unchanged after a successful Discord delivery. Use to chain downstream nodes.
errorobjectReceives execution when the webhook call fails. Contains statusCode, message, and the original payload for retry or fallback handling.

Example

json
{
  "nodeType": "discord_notify",
  "config": {
    "webhookUrl": "https://discord.com/api/webhooks/123456789012345678/abc-xyz-token",
    "content": "Battle **{{battleId}}** has ended. Winner: **{{winner}}** with score {{score}}.",
    "username": "LenserFight Bot",
    "embedColor": 5814783
  }
}