Discord Message Block
Send messages to Discord with optional link preview control
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)
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.
Disables link previews for 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.
Outputs
The block outputs the rendered message string, which may include modifications to disable link previews if specified.
Usage Context
Use this block to send messages to Discord channels, especially when you need to control the appearance of links or include dynamic content.
Best Practices
- Ensure the message content is correctly formatted using Jinja templates for dynamic data.
- Use the disable link preview option to control how links appear in your messages.
- Test the message output to verify that it renders as expected in Discord.