Discord

Sends data to Discord

Message → Send

AI-generated

Summary

Send a message to a specified Discord channel or directly to a user using various authentication methods including Bot Token, OAuth2, or Webhook.

Inputs

  • Connection Type (required) — Choose the authentication method for sending the message: Bot Token, OAuth2, or Webhook.
  • Server (required) — Select the Discord server (guild) your bot is connected to; required for Bot Token and OAuth2 methods.
  • Send To (required) — Select whether to send the message to a channel or directly to a user (not available for Webhook authentication).
  • User — Select the user to send a direct message to; required if 'Send To' is set to User and not using Webhook authentication.
  • Channel (required) — Select the target channel by name, URL, or ID; required if 'Send To' is set to Channel and not using Webhook authentication.
  • Message Content — Enter the text content of the message, up to 2000 characters.
  • Options — Set message flags such as suppressing embeds or notifications, specify a message to reply to, or enable text-to-speech.
  • Embeds — Add one or more rich embeds to the message, with options to specify fields like title, description, author, color, images, and timestamp.
  • Files — Attach files to the message by specifying the binary data field names from input.

Output shape

a single message object representing the sent message

The output includes message metadata from Discord after successful sending; the operation supports sending via Bot Token, OAuth2, or Webhook authentication with different available options per method.

Examples

Example 1: Send a simple text message to a text channel using a Bot Token authentication

Set Connection Type to Bot Token; select Server and Channel; enter the message content.

Example 2: Send a direct message to a user with an embed and file attachment using OAuth2 authentication

Set Connection Type to OAuth2; select Server and User; add embed content and attach file binary data.

Example 3: Send a message through a Webhook to a specific channel

Set Connection Type to Webhook; provide Webhook URL in credentials; compose message content (options like reply or TTS are not available).

Links

Discussion