Best Practices
Learn from experienced users to build a reliable, maintainable RoleLogic setup. These practices help you avoid common pitfalls and keep your automation running smoothly.
Planning Your Setup
Start With Goals, Not Rules
Before creating rules, clearly define what you want to achieve:
- List your goals: "Remove guest role when verified", "VIP for boosters", etc.
- Prioritize: Which are most important?
- Identify dependencies: Which goals depend on others?
- Then create rules: Design rules to meet your goals
This prevents creating unnecessary rules and helps you think through edge cases.
Map Your Role Structure
Sketch your role hierarchy before automating:
Admin
↳ Moderator
↳ Helper
↳ VIP
↳ Member
↳ Verified
↳ Unverified
Understanding relationships helps you design rules that work together.
Consider All Paths
Think about how members move through your roles:
- What happens when someone joins?
- What happens when they get verified?
- What if they get un-verified?
- What about edge cases (multiple roles, role removals, etc.)?
Writing Effective Rules
One Purpose Per Rule
Each rule should do one logical thing:
Good:
- Rule 1: "If Verified, remove Unverified"
- Rule 2: "If Verified, add Member Access"
Less Clear:
- Rule 1: "If Verified, remove Unverified AND add Member Access AND add Welcome Channel AND remove Pending..."
Single-purpose rules are easier to understand, test, and debug.
Use Descriptive Names
Future you will thank present you:
Good names:
- "Remove Unverified when member gets Verified"
- "Auto-VIP for Server Boosters"
- "Staff cleanup on demotion"
Bad names:
- "Rule 1"
- "New rule"
- "asdf"
Keep Conditions Simple
When possible, use straightforward conditions:
Simpler (preferred):
IF has some of [Verified] → THEN add [Member]
More complex (when needed):
IF has all of [Verified, Level 10] AND lacks some of [Muted, Banned] → THEN add [Trusted]
Use complexity only when the situation requires it.
Managing Priority
Use Priority Intentionally
Don't just assign random priorities. Plan which rules should run first:
- Foundation rules first (Priority 0-2): Verification, basic access
- Feature rules middle (Priority 3-6): Tiers, rewards, perks
- Cleanup rules last (Priority 7-10): Removing old roles, edge case handling
Leave Gaps
Don't use consecutive priorities (0, 1, 2, 3...). Leave gaps for future rules:
Better approach:
- Rule A: Priority 0
- Rule B: Priority 5
- Rule C: Priority 10
Now you can add rules at priority 2 or 7 without renumbering everything.
Document Priority Logic
Keep notes about why rules have certain priorities. This helps when reviewing later.
Testing Strategies
Always Test Before Enabling
Make sandbox testing a habit:
- Create or modify a rule
- Test with expected role combinations
- Test edge cases
- Then enable
Test Edge Cases
Go beyond happy paths:
- Test with no roles (except @everyone)
- Test with all possible roles
- Test with conflicting roles
- Test roles that many members have
Test Rule Interactions
When adding new rules, test how they interact with existing ones:
- What rules exist that might trigger?
- What rules might this new rule trigger?
- Test the full cascade
Verify After Major Changes
After significant modifications:
- Manually verify a few members
- Check the Activity Log
- Monitor webhook notifications
- Be available to fix issues quickly
Maintenance Routines
Regular Reviews
Schedule periodic rule reviews (monthly is good for most servers):
- Are all rules still needed?
- Are descriptions accurate?
- Any rules that never trigger?
- Any roles that no longer exist?
Clean Up Unused Rules
Delete or disable rules that:
- Reference deleted roles
- Were for temporary events
- Are duplicated by other rules
- Were tests you forgot to remove
Update After Server Changes
When your server changes (new roles, structure changes):
- Review affected rules
- Update as needed
- Test the changes
Organization Strategies
Group Related Rules
Mentally group rules by purpose:
Verification Group:
- "Add Pending to new members"
- "Remove Pending when Verified"
- "Add Member Access when Verified"
VIP Group:
- "VIP for Boosters"
- "VIP Perks for VIP"
- "Remove VIP when no longer Booster"
Use Consistent Naming
Establish naming patterns:
- "Remove [X] when [Y]"
- "Add [X] to [Y] members"
- "Auto-[action] for [trigger]"
Consistency makes scanning rule lists easier.
Document Complex Logic
For intricate setups, maintain external documentation:
- Why rules are configured certain ways
- How rules work together
- Edge cases you've considered
Performance Considerations
Minimize Redundant Rules
Look for opportunities to consolidate:
Instead of:
- Rule 1: If "Bronze", add "Has Tier"
- Rule 2: If "Silver", add "Has Tier"
- Rule 3: If "Gold", add "Has Tier"
Use:
- Rule 1: If has some of [Bronze, Silver, Gold], add "Has Tier"
Avoid Unnecessary Cascades
While cascading can be powerful, excessive cascades slow processing. Design rules to minimize chain reactions when possible.
Use Threshold Conditions Wisely
Threshold conditions (At Least N, Exactly N, etc.) can replace multiple rules:
Instead of: Separate rules for 1 badge, 2 badges, 3 badges Use: "At Least 3" badges → add Collector role
Security Best Practices
Protect Staff Roles
Position RoleLogic's role carefully—it shouldn't be able to assign Admin or Owner roles.
Recommended hierarchy:
Owner
Admin
RoleLogic ← Below staff roles
Moderator
VIP
Member
Review Rule Changes
Use the Activity Log to:
- Verify only authorized users modify rules
- Catch unexpected changes
- Audit automation decisions
Test Before Production
For important rules, test in a staging environment first if possible, or use the sandbox extensively.
Be Careful With Remove Actions
Remove actions are powerful. Double-check:
- You're targeting the right roles
- You're not removing critical access
- The condition is specific enough
Quota Management
Stay Within Limits
Monitor your quota usage:
- Don't create rules you don't need
- Delete obsolete rules promptly
- Plan before hitting limits
Consolidate Efficiently
Look for ways to do more with fewer rules:
- Combine similar conditions
- Use threshold conditions
- Let rules cascade
Upgrade When Needed
If you consistently hit limits, consider upgrading rather than constantly managing around constraints.
Backup and Recovery
Document Your Setup
Keep records of your rules (screenshots, notes, etc.). If something goes wrong, you can recreate your setup.
Make Changes Incrementally
When modifying rules:
- Change one thing at a time
- Test after each change
- Know how to revert
Use Disable Instead of Delete
When unsure about removing a rule, disable it first. You can delete later once you confirm it's not needed.
Working With Teams
Establish Ownership
If multiple people manage rules:
- Who has authority to create/modify rules?
- How are changes communicated?
- Who troubleshoots issues?
Use the Activity Log
The Activity Log helps teams:
- See who changed what
- Coordinate modifications
- Investigate issues
Document Decisions
When making rule decisions as a team, document the rationale. This helps future team members understand why things are configured certain ways.
Summary Checklist
Use this checklist when setting up or reviewing your RoleLogic:
- Goals clearly defined before creating rules
- Each rule has one clear purpose
- Descriptive names on all rules
- Priorities assigned intentionally with gaps
- All rules tested in sandbox
- Edge cases considered and tested
- Regular review scheduled
- Unused rules cleaned up
- Complex logic documented
- Staff roles protected from automation
- Activity Log monitored
Related Resources
- Common Scenarios — Patterns you can adapt
- Troubleshooting — Fix problems when they occur
- Testing Sandbox — Verify before going live