Discord Message Block

Send customized messages to Discord

The Discord Message block is designed to facilitate sending messages to Discord channels directly from Scout workflows. This block supports dynamic message content through Jinja templating and provides an option to disable link previews, allowing for precise control over message presentation.

Configuration (Required)

Discord Message
codeRequired

The Discord message parameter defines the content of the message to be sent to the specified Discord channel. This field supports Jinja templating, enabling dynamic message construction based on the workflow state.

Disable Link Previews
boolean

This parameter determines whether link previews should be disabled in the message. By default, it is set to false, allowing link previews. Set this to true to prevent Discord from generating previews for links contained in the message.

See Workflow Logic & State > State Management for details on using dynamic variables in this block.

Outputs

The block outputs the processed message string, which may include modifications to disable link previews if specified.

Usage Context

Use this block to send messages to Discord channels, utilizing Jinja templating for dynamic message content. The option to disable link previews can be useful for cleaner message presentation.

Best Practices

  • Ensure that the message text is properly formatted and any dynamic content is correctly structured using Jinja templating.
  • Consider disabling link previews if the message contains sensitive URLs or if a cleaner message appearance is desired.