Skip to content

Send Messages

Gago edited this page Apr 16, 2021 · 3 revisions

A node with one input. Sends a message to the specified channel.

Node configuration

  • Name - input node's name.
  • Token - select bot token created via Token node.
  • Direct message - comma-separated user IDs (or a single ID) to send a direct message.
  • Text channels - comma-separated channel IDs (or a single ID) to send message to.

Node input

{
  dm?: string | string[]; // Same as Direct Message conf. option.
  channel?: string | string[]; // Same as Text Channels conf. option.
  msg?: string; // Simple string message
  embed?: RichEmbedArgs; // Rich text embed message
  attachments?: {
    name: string;
    attachment: string | Buffer | Stream;
  };[]; // Attachments to send with message
}

RichEmbedArgs definition

Mentions

In messages you can mention Users and Roles.
The syntax for
Users - @!(username)
Roles - @&(role name)

Clone this wiki locally