Send Discord Message
The Send Discord Message block delivers a text message to Discord, either by editing an existing loading message or by posting a new message to a channel.
Send or update messages in Discord channels
The Send Discord Message block delivers a text message to Discord, either by editing an existing loading message or by posting a new message to a channel. It operates in one of two modes: "edit" mode replaces a pending interaction response using an application ID and interaction token, while "send" mode posts a new message to a specified channel using a bot token and channel ID. An optional attachment URL can be provided, and the file at that URL will be downloaded and uploaded directly to Discord alongside the message.
The block accepts a text string as the message body, along with mode-specific credentials and identifiers. In "send" mode, the block returns a messageId representing the ID of the newly posted message, which can be stored in a variable for use in downstream blocks such as Edit Discord Message. In "edit" mode, no message ID is returned since the block is updating an existing interaction response rather than creating a new one.
This block fits into workflows that respond to Discord interactions or automate channel communications. For example, a workflow triggered by a Discord slash command might use "edit" mode to replace a loading state with a final AI-generated response, while a scheduled or event-driven workflow might use "send" mode to post updates or notifications to a specific channel.
What you can build
Real-world workflows powered by the Send Discord Message block.
Slash Command Response
After a user triggers a Discord slash command, use "edit" mode to replace the loading message with the final AI-generated answer using the interaction token from the trigger.
Scheduled Channel Announcements
Post automated announcements or daily summaries to a Discord channel on a schedule using "send" mode with a bot token and channel ID.
AI Chatbot Reply
Send an AI-generated reply to a Discord channel in response to a user message, completing a conversational workflow loop.
Alert and Notification Delivery
Deliver system alerts or event-driven notifications to a designated Discord channel when specific conditions are met in a workflow.
File or Image Sharing
Attach a generated image or document by providing its URL to the attachmentUrl field, which downloads and uploads the file to Discord alongside the message.
Multi-Step Workflow Updates
Post intermediate or final status updates to a Discord channel as part of a longer workflow, using the returned messageId to edit the message in a later step.
Ready to add Send Discord Message to your workflow?
Get Started FreeCommon questions about Send Discord Message
What are the required parameters for each mode?
In "edit" mode, the block requires applicationId, interactionToken, and the message text. In "send" mode, it requires botToken, channelId, and the message text. The attachmentUrl field is optional in both modes.
What does this block return?
In "send" mode, the block returns a messageId representing the ID of the newly posted message. This ID can be saved to a variable using the messageIdVariable field and used with downstream blocks like Edit Discord Message. In "edit" mode, no messageId is returned.
What kinds of workflows commonly use this block?
This block is commonly used in workflows triggered by Discord interactions (such as slash commands), where "edit" mode updates the pending response, and in automated or event-driven workflows that post new messages to a channel using "send" mode.
Can I attach a file to the Discord message?
Yes. You can provide a URL in the attachmentUrl field. The block will download the file from that URL and upload it to Discord as an attachment alongside the message text.
Are there any time constraints on the interaction token used in "edit" mode?
Yes. The interaction token used in "edit" mode is sourced from the Discord trigger and expires after 15 minutes, so the workflow must complete and call this block within that window.
Related capabilities
Post to Slack Channel
Send a message to a Slack channel via a connected bot.
Fetch Slack Channel History
Fetch recent message history from a Slack channel.
Send Email
Send an email to one or more configured recipient addresses.
Send SMS
Send an SMS or MMS message to a phone number configured via OAuth connection.
Send Discord Follow-Up
Send a follow-up message to a Discord slash command interaction.
Edit Discord Message
Edit a previously sent Discord channel message. Use with the message ID returned by Send Discord Message.
Add Send Discord Message to your workflow
Build powerful AI workflows with drag-and-drop blocks. No coding required.