Block Builder· Updated Nov 4, 2026
Conditions, variables and control flow
Branching a flow with true/false outputs, and the checks available to you.
How branching works
Conditions have two outputs: the emerald upper port runs on true, the red lower port on false. Wire each to a different action and the flow splits.
The checks
- Has Role? —
roleIdthe member must hold. - Message Has? —
textpresent in the triggering message. - In Channel? —
channelIdthe event must come from. - User Is? —
userIdthe actor must match. - Has Permission? — Administrator, Kick Members, Ban Members, Manage Messages, Manage Roles or Manage Channels.
- Is Bot? — true when the author is a bot; useful to ignore other bots.
- Arg Count? — compares the number of command arguments with
equals,greaterorless. - Random Chance? —
percent, for gacha-style or joke responses.
Chaining
Conditions can feed other conditions. Each node keeps its own true and false branch, so a check can be nested as deep as you need.
A worked example — auto-moderation
- On Message with
match: contains,text: discord.gg. - → Is Bot? — true branch goes nowhere, false branch continues.
- → Has Permission? (
Manage Messages) — true branch continues. - → Purge Messages with
count: 1, then Send DM to warn the author.
Keep branches readable: drag related nodes into a vertical line and leave space between columns.