Docs
NodesTrigger Nodes
Edit Page on GitHub

Discord Trigger

Triggers the flow when a user uses a slash command, clicks a button, or sends a text message on your Discord bot

triggerdiscordbotcommandbuttonmessageEasy0
Social

Discord Trigger

0
Flow
Interaction Type
Action Value
Message
Channel ID
User ID
Server ID
Payload

Description

The Discord Trigger node allows you to start a workflow in Deforge when a user interacts with your Discord bot. This node can trigger flows based on three types of interactions:

  1. Slash Commands: When a user types a slash command that your bot has registered (e.g., /hello), this node can trigger a flow and provide the command name and query as outputs.
  2. Button Clicks: If your bot sends messages with interactive buttons, you can use this node to trigger flows when users click those buttons. The node will output the custom ID of the button clicked.
  3. Text Messages: You can also configure this node to trigger on any text message received by the bot, allowing you to create flows that respond to user messages in Discord.

Common Use Cases

  • Building a Discord bot that responds to slash commands with dynamic content generated by Deforge.
  • Creating interactive Discord messages with buttons that trigger specific workflows when clicked.
  • Setting up automated responses to user messages in Discord based on keywords or phrases.

Inputs

The input connections this node accepts:

This node does not have any input ports.

Outputs

The output connections this node provides:

NameDescriptionTypeFlowThe Flow to triggerFlowInteraction TypeType of interaction (COMMAND, BUTTON, or MESSAGE)TextAction ValueThe name of the slash command, or the custom ID of the button clickedTextMessageMessage received by the bot (or the query from a slash command)TextChannel IDChannel ID where the interaction happenedTextUser IDUser ID of the person who interactedTextServer IDServer (Guild) ID where the interaction happenedTextPayloadThe full raw payload from DiscordJSON

Fields

The configurable fields this node provides:

NameDescriptionTypeDiscordConnect to your Discord botDefaultValue: ``social

Last updated on