Example: a fully protected community server
Let's set up Horizon Café, a community server of 15,000 members: chat, events, an economy, tickets, and a staff of about thirty people. The goals:
- every staff rank can do its job and nothing more;
- nobody needs dangerous Discord permissions (Ban Members, Manage Server…) to moderate;
- a compromised or over-zealous account can't wreck the server;
- members can't spam the fun and economy commands.
Every command below can be copied as-is. Allow about fifteen minutes.
1. The staff ladder
Plus one special role, @Raid Response: a few trusted members from any rank who can lock the server and ban during a raid, even if their rank normally can't.
Discord permissions: give the staff roles no moderation permission at all in Discord (no Ban Members, Kick Members, Manage Messages, Manage Server…). iHorizon's rules will give them exactly what they need, through the bot. Keep Administrator for the owner and maybe one co-owner.
2. Map the ranks to levels
The server owner runs, once per rank:
/perm edit-roles perm_level:Perm 9 perm_role:@Co-owner
/perm edit-roles perm_level:Perm 8 perm_role:@Head Admin
/perm edit-roles perm_level:Perm 7 perm_role:@Admin
/perm edit-roles perm_level:Perm 6 perm_role:@Head Moderator
/perm edit-roles perm_level:Perm 5 perm_role:@Senior Moderator
/perm edit-roles perm_level:Perm 4 perm_role:@Moderator
/perm edit-roles perm_level:Perm 3 perm_role:@Helper
/perm edit-roles perm_level:Perm 2 perm_role:@Support
/perm edit-roles perm_level:Perm 1 perm_role:@Event Team
Then gives the co-owners a direct Perm 9 too, so they can hand out direct levels later (why):
Protect the rank roles in Discord
A level follows its role. So whoever can give @Senior Moderator in Discord can create a Perm 5. Keep the rank roles above every role that has Manage Roles, and don't give Manage Roles to moderators.
3. A rule on every sensitive command
Start broad, then refine. Each line is one /perm command action:Change command permission with the command and permission shown:
| Command | Level | Why |
|---|---|---|
mod |
Perm 3 | Every /mod subcommand is staff-only by default |
mod kick, mod tempmute, mod unmute, mod temprole |
Perm 4 | Removing someone for a while |
mod ban, mod tempban, mod unban |
Perm 5 | Bans are for senior moderators |
mod lock-all, mod unlock-all, mod unmuteall, mod clear-all-warns |
Perm 6 | Server-wide effect |
mod warnconfig |
Perm 7 | Decides automatic sanctions |
unban-all |
Perm 9 | Irreversible |
| Command | Level | Why |
|---|---|---|
guildconfig, setlogs, ticket config, ticket panel, ticket log-channel, ticket set-category |
Perm 7 | Configuration |
protect, security, antispam, honeypot, automod |
Perm 8 | Turning protection off is what a raider would do first |
backup |
Perm 9 | backup load can rebuild the whole server |
perm, commandlimit |
Perm 9 | Whoever controls these controls everything else |
| Command | Level | Why |
|---|---|---|
utils massmove, utils massiverole, utils derank |
Perm 6 | Affects many members at once |
ticket add-member, ticket remove-member, ticket close, ticket rename, ticket transcript |
Perm 2 | Support work |
gw, sticky |
Perm 1 | Events |
Then the @Raid Response exceptions, with custom-role instead of a level:
/perm command action:Change command permission command:mod lock-all custom-role:@Raid Response
/perm command action:Change command permission command:mod ban custom-role:@Raid Response
mod lock-all now opens to Perm 6+ or @Raid Response; mod ban to Perm 5+ or @Raid Response.
Rules on perm and commandlimit lock out Administrators
With perm at Perm 9, an Administrator who isn't Perm 9 can no longer use /perm. That's the point (an admin account can't quietly rewrite your rules), but make sure your co-owners are Perm 9 before adding this rule. The server owner always keeps access.
4. Usage limits
Each line is one /commandlimit action:Set:
| Command | Limit | Why |
|---|---|---|
economy rob |
3 per 1h |
The classic economy spam |
economy pay |
10 per 1h |
Slows down an alt-account money funnel |
fun |
5 per 1m |
Image commands can't flood a channel (each subcommand counts separately) |
mod warn |
10 per 10m |
A runaway helper or a stolen account can't mass-warn |
mod clear |
5 per 1m |
Same for message deletion |
mod ban |
5 per 10m |
Anti-nuke: a compromised moderator can't ban half the server |
mod kick |
10 per 10m |
Same |
utils massiverole |
2 per 1h |
One mistake is enough |
backup create |
3 per 1d |
Backups are heavy |
The owners are never limited, so you're never locked out during a real emergency.
5. Turn on the protection modules
Levels, rules and limits decide who can act. The protection modules watch what happens, and work best together with them:
- Protection (
/protect): undoes destructive actions made directly in Discord (deleted channels and roles, bans, server edits, admin grants…) and sanctions whoever made them, with an allowlist for trusted members. It's what stops someone who has Discord permissions; the rules above stop misuse of iHorizon's commands. - Anti-spam: message spam, mass mentions, duplicates.
- Security: a captcha for new members.
- Honeypot: a trap channel that catches raid bots.
- Warnings:
mod warnconfigwith automatic sanctions (e.g. timeout at 3 warnings, kick at 5) and expiry. - Logs (
/setlogs): every ban, kick, role and channel change in a log channel.
6. Check everything
/perm command action:List all commands permission set: every rule, grouped by level./perm list: which roles and members have which level./commandlimit action:List: every limit.- Ask a Helper to run
+helpall: they should see the Perm 1 to 3 commands (warn, clear, lock…), and not the bans. - Open
/help: the moderation commands show their padlocks (🔒 3, 🔒 5…).
A Perm 3 helper tries to ban: refused, and told what it takes.
What you get
| Situation | What happens |
|---|---|
A new helper tries /mod ban |
Refused: bans need Perm 5 |
| A moderator's account is stolen and starts banning | 5 bans at most per 10 minutes through iHorizon, then blocked; and with no Ban Members in Discord, it can't ban by hand either |
| An admin account tries to switch the protection off | Refused: protect needs Perm 8 |
| Someone with Administrator tries to change the rules | Refused: perm needs Perm 9 |
| A raid starts at 3 a.m. | Any @Raid Response member can mod lock-all and ban, whatever their rank |
A member spams /economy rob |
3 per hour, then "You have reached the limit for this command." |
| A helper wonders what they can do | +helpall |
| A moderator leaves the team | Remove their role: their level goes with it |
Everything here can also be reviewed and edited in the dashboard, module Permissions.