Skip to main content

Condition Types

Conditions are the "IF" part of your rules. They determine which members a rule applies to.

Quick Reference​

ConditionMatches When
Has Some RolesMember has ANY of the roles
Has All RolesMember has EVERY role
Lacks Some RolesMember is missing ANY role
Lacks All RolesMember has NONE of the roles
Exactly NMember has exactly N roles
At Least NMember has N or more roles
At Most NMember has N or fewer roles
More Than NMember has more than N roles
Less Than NMember has fewer than N roles

The five count conditions can also count any role a member has, not just a list — see Counting any role.

Role Presence Conditions​

Has Some Roles​

Matches if: Member has at least one of the specified roles.

Example:

IF has some of [Booster, Premium, VIP] → add Exclusive-Access

Fires if member has Booster OR Premium OR VIP.

Has All Roles​

Matches if: Member has every specified role.

Example:

IF has all of [Verified, Level 10, Active] → add Trusted

Only fires if member has ALL THREE roles.

Lacks Some Roles​

Matches if: Member is missing at least one role.

Example:

IF lacks some of [Verified, Rules-Accepted] → add Needs-Setup

Fires if member is missing Verified OR Rules-Accepted.

Lacks All Roles​

Matches if: Member has none of the specified roles.

Example:

IF lacks all of [Bronze, Silver, Gold] → add No-Tier

Only fires if member has NONE of the tier roles.

Threshold Conditions​

These count roles from a set and compare to a number.

Exactly N Roles​

Example:

IF has exactly 1 of [Bronze, Silver, Gold] → add Single-Tier

Only members with precisely one tier role.

At Least N Roles​

Example:

IF has at least 2 of [Helper, Mod, Admin] → add Multi-Staff

Members with 2 or more of these roles.

At Most N Roles​

Example:

IF has at most 1 of [Warning-1, Warning-2, Warning-3] → add Good-Standing

Members with 0 or 1 warnings.

More Than N Roles​

Example:

IF has more than 3 of [Badge-1, Badge-2, Badge-3, Badge-4, Badge-5] → add Collector

Members with 4 or 5 badges (not 3).

Less Than N Roles​

Example:

IF has less than 2 of [Daily-1, Daily-2, Daily-3] → add Needs-Activity

Members with 0 or 1 daily roles.

Counting Any Role​

Every count condition has a Count which roles? switch. Keep Only the roles below to count from a list, as in the examples above. Pick Any role except the ones below to count every role the member has, including roles your server creates later. The roles you pick are then the ones not counted, and the list can be empty.

Example: a club creates a role for each game and deletes it two weeks later. Every member has two permanent roles, Member and Verified.

IF has fewer than 1 role, not counting [Member, Verified] → add Priority OTHERWISE remove Priority

Members who haven't played recently get Priority. Getting a game role takes it away, and once that game role is deleted they get it back. Nobody has to edit the rule as game roles come and go.

These are never counted, so you don't need to list them:

  • The rule's own roles (Priority above). Counting them would let adding the role change the very count the rule depends on.
  • @everyone
  • Roles Discord manages: Server Booster, bot roles, and integration roles such as Twitch or YouTube member roles.

A role on the "not counted" list that later gets deleted changes nothing, and the rule keeps running.

note

When a role is deleted, Discord doesn't tell bots which members had it. Those members are re-counted at their next role change or at the next background check: within about 30 minutes on Free and 2 minutes on Premium.

Combining Conditions (AND)​

Add up to 9 additional conditions with AND logic. All must be true.

Example:

IF has some of [Verified] AND has at least 2 of [Event-1, Event-2, Event-3, Event-4] AND lacks all of [Banned, Muted] THEN add Event-Regular

Choosing the Right Condition​

GoalUse
Has this roleHas Some Roles with 1 role
Has both X and YHas All Roles
Missing setupLacks All Roles
Any tier roleHas Some Roles with tier list
Minimum countAt Least N
Exact countExactly N
Fewer than N roles in total, as roles come and goLess Than N, counting any role

Tips​

  • @everyone: Every member has this role. Include it in testing with "Lacks" conditions.
  • Single role check: Use "Has Some Roles" with one role selected.
  • Test first: Use the sandbox to verify conditions work.