Discord
Send messages and notifications to Discord channels using webhooks from your Spala flows.
Discord
The Discord addon lets you send messages to Discord channels through webhooks. Use it to post notifications, alerts, and updates to your Discord server directly from your Spala flows.
Installation
1. Enable the Discord addon from the Addons panel 2. Create a webhook in your Discord server (Server Settings > Integrations > Webhooks) 3. Enter the webhook URL in the addon configuration
Configuration
Integrations > Webhooks.' },
Available Steps
Send Message
Posts a message to the Discord channel associated with the webhook.
Example: Simple Notification
// Event trigger: "order.completed"
// Step 1: Send Message (Discord addon) // content: '**New Order!** Order #' + event.payload.orderId + ' for
Example: Rich Embed Notification
// Error handler flow
// Step 1: Send Message (Discord addon)
// username: 'Alert Bot'
// embeds: [{
// title: 'Error Alert',
// description: vars.error.message,
// color: 16711680,
// fields: [
// { name: 'Flow', value: vars.flowName, inline: true },
// { name: 'Step', value: vars.stepName, inline: true },
// { name: 'Time', value: new Date().toISOString() }
// ],
// footer: { text: 'Spala Error Monitor' }
// }]
Discord embeds support titles, descriptions, colored sidebars, fields, images, thumbnails, and footers. The color field accepts a decimal color value (e.g., 16711680 for red, 65280 for green).
Discord webhooks are channel-specific. To send messages to different channels, create separate webhooks and configure multiple environment variables, or pass the webhook URL as a step input.
Discord webhook URLs should be kept secret. Anyone with the URL can post messages to your channel. Store the URL in environment variables and never expose it in client-side code.
The full webhook URL from your Discord server. Found in Server Settings > Integrations > Webhooks. The text content of the message. Supports Discord markdown. Override the webhook display name for this message. Array of embed objects for rich message formatting. Error Alert Addons Overview /addons Browse available addons Installing Addons /addons/installing Enable and configure addons in your project + event.payload.total.toFixed(2)
Example: Rich Embed Notification
// Error handler flow
// Step 1: Send Message (Discord addon)
// username: 'Alert Bot'
// embeds: [{
// title: 'Error Alert',
// description: vars.error.message,
// color: 16711680,
// fields: [
// { name: 'Flow', value: vars.flowName, inline: true },
// { name: 'Step', value: vars.stepName, inline: true },
// { name: 'Time', value: new Date().toISOString() }
// ],
// footer: { text: 'Spala Error Monitor' }
// }]
Discord embeds support titles, descriptions, colored sidebars, fields, images, thumbnails, and footers. The color field accepts a decimal color value (e.g., 16711680 for red, 65280 for green).
Discord webhooks are channel-specific. To send messages to different channels, create separate webhooks and configure multiple environment variables, or pass the webhook URL as a step input.
Discord webhook URLs should be kept secret. Anyone with the URL can post messages to your channel. Store the URL in environment variables and never expose it in client-side code.
The full webhook URL from your Discord server. Found in Server Settings > Integrations > Webhooks. The text content of the message. Supports Discord markdown. Override the webhook display name for this message. Array of embed objects for rich message formatting. Error Alert Addons Overview /addons Browse available addons Installing Addons /addons/installing Enable and configure addons in your project