Discord

output.discord Output v0.1.0

Sends a Discord message through a webhook or as a bot (token + channel). Leave the content blank to send the input payload as JSON; embeds, username, and avatar overrides supported.

Ports

DirectionPortLabel
InputinputPayload
OutputoutputMessage

Properties

PropertyTypeDefaultDescription
Credential
credentialId
credential "" Use a stored credential for this connection — its fields are filled in at run start. Pick "None" to enter the connection details manually.
accepts credential templates: discord
Send via
mode
select "webhook" A channel webhook URL, or the bot API (token + channel ID).
webhookbot
Webhook URL
webhookUrl
string "" Discord webhook URL — supports ${credential.discord.webhookUrl}.
Shown when (mode ?? "webhook") === "webhook"
Bot token
token
string "" Discord bot token — supports ${credential.discord.botToken}.
Shown when mode === "bot"
Channel ID
channelId
string "" Channel the bot posts into.
Shown when mode === "bot"
Content
content
string "" Message content. Leave blank to send the input payload as JSON.
Embeds
embeds
json [] Optional embeds as a JSON array.
Username override
username
string "" Webhook display-name override.
Shown when (mode ?? "webhook") === "webhook"
Avatar URL override
avatarUrl
string "" Webhook avatar override.
Shown when (mode ?? "webhook") === "webhook"
Wait for the message
wait
boolean true Wait for Discord to create the message and output the message object (off = fire-and-forget { sent: true }).
Base URL
baseUrl
string "https://discord.com" Discord API base URL (bot mode; override for testing).
Shown when mode === "bot"
Timeout (ms)
timeoutMs
int 15000 Abort the request after this many milliseconds.

This page is generated from the node registry by gen-node-docs.mjs on every site build — ports, properties, defaults and visibility rules cannot drift from the code.