Actions17
- Channel Actions
- Message Actions
- Member Actions
Member → Send a Message
AI-generatedSummary
Send a message from the selected Discord server member to a specified user via direct message or to a channel within that server using bot token, OAuth2, or webhook authentication.
Inputs
- Connection Type (required) — Choose the type of authentication to use: Bot Token for managing server content, OAuth2 for easier installation with similar permissions, or Webhook for sending messages to a specific channel.
- Send To (required) — Select whether to send the message to a user (direct message) or to a channel.
- User — Specify the user by name or ID to whom the message will be sent as a direct message. Required if 'Send To' is set to 'User'.
- Channel (required) — Select the channel by name, URL, or ID where the message will be sent. Required if 'Send To' is set to 'Channel'.
- Server (guild) (required) — Select the Discord server (guild) that your bot is connected to, by name, URL, or ID. Required when using Bot Token or OAuth2 authentication.
- Message Content — Enter the text content of the message, up to 2000 characters. Used with legacy send operation paths.
- Options — Provide additional message options such as appending n8n attribution, sending as Text-to-Speech, overriding username or avatar URL for webhooks, message flags to suppress embeds or notifications, and whether to wait for the message creation response.
- Embeds — Add one or multiple rich embed objects to include with the message, either via field-based property entry or raw JSON input.
- Files — Attach one or more files to the message by specifying the binary data field names in the input.
Output shape
a single message object representing the sent message, including its ID and metadata
The operation returns the created Discord message data, optionally waiting for confirmation if the 'Wait' option is enabled. For botToken and OAuth2 authentication, the message is sent via Discord API for the specified server; for webhook authentication, the message is posted to the specified webhook channel. Message content supports text, embeds, files, and flags. User and channel inputs are dynamically searchable or can be specified by ID or URL.
Examples
Example 1: Send direct message to a user using bot token authentication
Set 'Connection Type' to 'Bot Token', 'Send To' to 'User', select the user by name or ID, specify the server, and enter the message content.
Example 2: Send message to a channel with webhook authentication
Select 'Webhook' for 'Connection Type', specify the target channel by URL or ID, compose the message optionally with embeds or files, and send without needing the guild ID.