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
| Direction | Port | Label |
|---|---|---|
| Input | input | Payload |
| Output | output | Message |
Properties
| Property | Type | Default | Description |
|---|---|---|---|
CredentialcredentialId | 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 viamode | select | "webhook" | A channel webhook URL, or the bot API (token + channel ID). webhookbot |
Webhook URLwebhookUrl | string | "" | Discord webhook URL — supports ${credential.discord.webhookUrl}. Shown when (mode ?? "webhook") === "webhook" |
Bot tokentoken | string | "" | Discord bot token — supports ${credential.discord.botToken}. Shown when mode === "bot" |
Channel IDchannelId | string | "" | Channel the bot posts into. Shown when mode === "bot" |
Contentcontent | string | "" | Message content. Leave blank to send the input payload as JSON. |
Embedsembeds | json | [] | Optional embeds as a JSON array. |
Username overrideusername | string | "" | Webhook display-name override. Shown when (mode ?? "webhook") === "webhook" |
Avatar URL overrideavatarUrl | string | "" | Webhook avatar override. Shown when (mode ?? "webhook") === "webhook" |
Wait for the messagewait | boolean | true | Wait for Discord to create the message and output the message object (off = fire-and-forget { sent: true }). |
Base URLbaseUrl | 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.