Triggers & Actions Reference
Everything a behavior can react to, and everything it can do. You describe the feature; the Bot Builder chooses the trigger and writes the actions. Use this page to know what is possible and to name it precisely.
You describe, the builder wires
Triggers
Event Triggers
Fires when a user joins the server
Fires when a user leaves the server
Fires when a user is banned
Fires when a member's roles or nickname change
Fires when a message is deleted
Fires when a message is edited
Command Triggers
Discord slash commands (/command), with typed options
Right-click → Apps command on a user or message
Message Triggers
Message includes specific text
Message equals the text exactly
Message begins with text (use this for prefix commands like !rank)
Match a regular-expression pattern
Fires when the bot is @-mentioned
Reaction & Component Triggers
Fires when a user adds a reaction
Fires when a user removes a reaction
Fires when a user interacts with a component
Runs on a cron schedule or fixed interval
Actions
Message Actions
Send a text message to a channel. Toggle the reply flag to reply directly to the triggering message.
Send a rich embed message
Send a direct message to a user
Edit a message the bot already sent
Delete the triggering message
React to a message with an emoji
Role Actions
Give a role to a user
Remove a role from a user
Create a new role
Moderation Actions
Remove a user from the server
Ban a user from the server
Mute a user for a set duration
Purge a batch of recent messages
Channel Actions
Create a text, voice, category, or forum channel
Delete a channel
Block or restore @everyone send access
Set the per-user message cooldown
Change a channel's topic
Advanced Actions
JavaScript that runs when the trigger fires. This is the action the Bot Builder writes for most custom features — it can call outside APIs with fetch, wait on timers, and keep state between runs, so anything not covered by a preset lands here.
Post a message to a Discord webhook
Read a sheet, write a cell, or append a row (readSheet, writeSheet, appendRow)
Need something not listed here?
Variables & Placeholders
Drop these placeholders into message text and action fields. Use curly braces, not square brackets.
{user}{username}{userid}{server}{channel}{membercount}{message}{content}{emoji}{args}