Triggers & Actions Reference
The triggers and actions you can wire together to build bot behaviors.
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
Run your own JavaScript when an action isn't covered by a preset. Use fetch for outbound HTTP, timers for delays, or globals to carry state between runs.
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?
fetch, add delays with timers, or store state in globals between runs.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}