Understanding Rules
A rule is an automated instruction that tells RoleLogic what to do when certain conditions are met.
Basic Concept
Every rule has two parts:
- IF (condition): When should this happen?
- THEN (action): What should happen?
Example:
IF a member has "Server Booster" THEN add "VIP"
Once active, RoleLogic automatically adds VIP to all boosters—current and future.
Parts of a Rule
Condition (IF)
Defines which members the rule applies to:
- Condition type: How to check roles (has some, has all, lacks some, etc.)
- Roles to check: Which roles to look for
- Threshold: For counting conditions (at least 3, exactly 2, etc.)
You can add up to 9 additional conditions with AND logic.
Action (THEN)
Defines what happens when conditions are met:
- Add roles: Give members one or more roles
- Remove roles: Take away one or more roles
You can combine both in a single rule.
Priority
Determines the order rules run:
- Priority 0 runs first
- Priority 1 runs second
- And so on...
Priority matters when rules depend on each other:
Rule A (priority 0): If has "Trial" → add "Member"
Rule B (priority 1): If has "Member" → remove "Trial"
Rule A runs first, then Rule B.
Status
Rules can be:
| Status | Meaning |
|---|---|
| Enabled | Active and processing |
| Disabled | Saved but not running |
| Pending | Queued, waiting for first sync |
| Stopped | Auto-stopped due to conflicts |
How Rules Process
Trigger Events
Rules evaluate when:
- A member joins or leaves
- You or a moderator changes roles
- Another bot changes roles
- Discord changes roles (boosters)
- RoleLogic's own rules make changes
Processing Flow
- Event occurs (role change, member join, etc.)
- RoleLogic checks all enabled rules in priority order
- Matching rules execute their actions
- Cascade check: If changes were made, rules are checked again
- Repeat until no more rules match (max 100 passes)
Cascading
One rule's action can trigger another rule:
- Member gets "Level 10"
- Rule A fires: "If Level 10 → add Premium"
- Rule B fires: "If Premium → add VIP-Access"
- No more rules match—done
This creates powerful automation chains.
Background Sync
RoleLogic also runs a continuous background scan every 10 minutes to catch any missed changes.
Creating a Rule
- Click "Add New Rule" in your dashboard
- Set condition: Choose type and select roles
- Set action: Choose add or remove, select roles
- Add description: Name your rule clearly
- Save: Rule activates within 1 hour (or click Play for immediate)
Combining Conditions
Add up to 9 additional conditions with AND:
IF has "Verified" AND has "Level 5" AND lacks "Muted" THEN add "Trusted"
All conditions must be true.
Combining Actions
Use "Add Combined Action" for add AND remove:
IF has "Promoted" THEN add "Staff" AND remove "Trainee"
Tips
- Clear names: "Remove Guest when Verified" not "Rule 7"
- Start simple: Test basic rules before complex chains
- Use priority intentionally: Think about which rules should run first
- Test first: Use the sandbox before going live
Next Steps
- Condition Types — All 9 ways to match members
- Actions — Add and remove roles
- Testing Sandbox — Test safely before going live