Actions17
- Channel Actions
- Message Actions
- Member Actions
Channel → Send a Message
AI-generatedSummary
Send a message to a specified Discord channel or as a direct message (DM) to a user using Bot Token, OAuth2, or Webhook authentication.
Inputs
- authentication — Choose the authentication method: Bot Token, OAuth2, or Webhook.
- sendTo (required) — Choose whether to send the message to a Discord channel or directly to a user DM.
- guildId (required) — Select the Discord server (guild) where the bot operates. Required when sending to a channel using Bot Token or OAuth2.
- channelId (required) — Specify the target channel by name, URL, or ID when sending to a channel.
- userId (required) — Select the target user by name or ID when sending a direct message to a user.
- content — The text content of the message to send (up to 2000 characters).
- options — Additional message options such as toggling text-to-speech (TTS), overriding webhook avatar or username, message flags, and whether to wait for message confirmation.
Output shape
a JSON object containing the Discord API response for the sent message when using Bot Token or OAuth2 authentication, or no body when using webhook authentication.
The returned data shape depends on authentication type; for Bot Token and OAuth2, the detailed message object is returned; for Webhook, typically only delivery status is available. The operation supports sending either to a channel or as a DM to a user, requiring appropriate identifiers. Optional message customization is available only for webhook authentication mode.