Discord Send Message

Discord Send Message

Send messages to Discord channels using server and channel names

Node Type

Action

Category

Discord Integration

Icon

Send

Overview

The Discord Send Message node is an action node that sends messages to Discord channels using server and channel names. This powerful integration allows you to automate Discord communications from your workflows, sending notifications, updates, and responses to specific channels automatically.

Key Features

  • Discord Integration: Seamlessly sends messages to Discord servers and channels
  • User Authorization: Requires user authorization and access to target channels
  • Name-Based Targeting: Uses server and channel names for easy configuration
  • Message Content: Supports full text content with Discord formatting
  • Success Tracking: Returns message ID and success status for workflow control
  • Error Handling: Graceful error handling with fallback responses

Prerequisites

Discord Integration

Must have Discord integration properly configured

Discord integration enabled and configured
User has authorized Discord access
Valid Discord bot token and permissions

Discord Server Access

Required permissions and access

Server Membership: User must be a member of the target Discord server
Channel Permissions: User needs send message permissions for the target channel
Text Channel: Target must be a text channel (not voice or announcement)

Node Configuration

Required Fields

Server Name

Type:text
Required:Yes
Value Type:string

The name of the Discord server (guild) where you want to send the message. Must match exactly as it appears in Discord.

Channel Name

Type:text
Required:Yes
Value Type:string

The name of the text channel where the message will be sent. Do not include the # symbol, just the channel name.

Message

Type:text
Required:Yes
Value Type:string

The message content to send. Supports Discord markdown formatting (bold, italic, code blocks, etc.).

Examples & Use Cases

Send Simple Notification

Send a basic notification to a Discord channel

{
  "serverName": "My Team Server",
  "channelName": "notifications",
  "message": "🔔 New user registered: John Doe"
}

Sends a simple notification message to the #notifications channel with emoji.

Dynamic Message with Formatting

Send formatted message with workflow data

{
  "serverName": "{{config.discordServer}}",
  "channelName": "alerts",
  "message": "**Alert**: {{alert.type}}\n*Severity*: {{alert.severity}}\n```{{alert.details}}```"
}

Uses Discord markdown formatting (bold with **, italic with *, code blocks with ```) and template variables.

Auto-Response Workflow

Respond to Discord messages automatically

Workflow Structure

💬 Discord Read Message → 🤖 AI Analysis → ✉️ Discord Send Message

Read incoming message, analyze with AI for appropriate response, and send reply to the same channel.

Multi-Channel Announcements

Send the same message to multiple channels

Workflow Structure

📝 Create Message → 🔄 For Each Channel → 📤 Discord Send Message

Create announcement once, then use For Each node to send to multiple channels efficiently.

Best Practices

Do's

  • Use exact server and channel names as they appear
  • Leverage Discord markdown for formatted messages
  • Check the success field before proceeding
  • Use template variables for dynamic content
  • Implement rate limiting for bulk messages
  • Test messages in development channels first

Don'ts

  • Don't include # symbol in channel name
  • Avoid sending too many messages rapidly (rate limits)
  • Don't forget to handle send failures
  • Avoid hardcoding server/channel names when possible
  • Don't send sensitive data without proper security
  • Avoid creating spam or excessive notifications
💡
Pro Tip: Use Discord markdown to create rich, formatted messages: **bold**, *italic*, __underline__, ~~strikethrough~~, `code`, and ```code blocks```. Combine with emojis for more engaging notifications.

Troubleshooting

Common Issues

Permission Denied

Symptoms: Node fails with insufficient permissions error

Solution: Verify the user has send message permissions in the target channel. Check that the bot has been added to the server and has proper permissions.

Server/Channel Not Found

Symptoms: Node fails with 'not found' error

Solution: Ensure server and channel names match exactly as they appear in Discord (case-sensitive). Verify the user is a member of the server and has access to the channel.

Rate Limit Errors

Symptoms: Node fails with rate limit exceeded error

Solution: Implement delays between messages and reduce sending frequency. Discord has rate limits that must be respected (typically 5 messages per 5 seconds per channel).

Message Not Appearing

Symptoms: Node succeeds but message doesn't show in Discord

Solution: Refresh Discord client and verify you're viewing the correct channel. Check that the message wasn't deleted by auto-moderation or bot rules.

Related Resources