Triggers & Actions Reference

The triggers and actions you can wire together to build bot behaviors.

Triggers

Event Triggers

Member Join

Fires when a user joins the server

Member Leave

Fires when a user leaves the server

Member Ban

Fires when a user is banned

Member Update

Fires when a member's roles or nickname change

Message Delete

Fires when a message is deleted

Message Edit

Fires when a message is edited

Command Triggers

Slash Command

Discord slash commands (/command), with typed options

Context Menu

Right-click → Apps command on a user or message

Message Triggers

Message Contains

Message includes specific text

Message Exact Match

Message equals the text exactly

Message Starts With

Message begins with text (use this for prefix commands like !rank)

Message Regex

Match a regular-expression pattern

Bot Mentioned

Fires when the bot is @-mentioned

Reaction & Component Triggers

Reaction Add

Fires when a user adds a reaction

Reaction Remove

Fires when a user removes a reaction

Button / Select / Modal

Fires when a user interacts with a component

Scheduled

Runs on a cron schedule or fixed interval

Actions

Message Actions

Send Message

Send a text message to a channel. Toggle the reply flag to reply directly to the triggering message.

Send Embed

Send a rich embed message

DM User

Send a direct message to a user

Edit Message

Edit a message the bot already sent

Delete Message

Delete the triggering message

Add Reaction

React to a message with an emoji

Role Actions

Add Role

Give a role to a user

Remove Role

Remove a role from a user

Create Role

Create a new role

Moderation Actions

Kick User

Remove a user from the server

Ban User

Ban a user from the server

Timeout User

Mute a user for a set duration

Bulk Delete

Purge a batch of recent messages

Channel Actions

Create Channel

Create a text, voice, category, or forum channel

Delete Channel

Delete a channel

Lock / Unlock Channel

Block or restore @everyone send access

Set Slowmode

Set the per-user message cooldown

Set Topic

Change a channel's topic

Advanced Actions

Custom Code

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.

Webhook

Post a message to a Discord webhook

Google Sheets

Read a sheet, write a cell, or append a row (readSheet, writeSheet, appendRow)

Need something not listed here?

Reach for Custom Code. It runs JavaScript with access to the triggering event, so you can call external APIs with 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}