Send Message
discord.send_message
ActionChat & messagingconnection required
POSTs to the connection's Discord webhook URL.
Post a message to a Discord channel via a webhook.
Connection
- Required
- Yes — the node will not save without one
- Auth type
- API key
- Providers
- Discord
- Secret shape
- the webhook URL (https://discord.com/api/webhooks/…)
- Resolved by
- config.connection_id, else node.connection_id
Configuration
3 fields, 1 required. A dotted path is a nested object and name[] an array of objects — the editor renders the same tree.
| Field | Type | Required | Default | Constraints | Example |
|---|---|---|---|---|---|
content Message text. Supports {{ }} expressions. | string | Yes | — | — | — |
username Override the webhook's display name. | string | No | — | — | — |
embeds Optional Discord embeds. | array | No | — | array of object | — |
Output
One shape.
sent
| Field | Type | Example |
|---|---|---|
ok | boolean | true |
message_id Id of the posted message. | string | — |
channel_id Channel the message landed in. | string | — |
{
"channel_id": "",
"message_id": "",
"ok": true
}Notes
- The webhook is created in a channel's Integrations settings; the URL is the credential.
See Send Message run in a workflow.
In a technical demo we add the Discord connection, drop the node on the canvas and let Workflow Health pre-flight it before the first real run.