Skip to content

Permissions & limits

Out of the box, iHorizon follows Discord: /mod ban needs Ban Members, /perm needs Administrator, and so on. That's fine for a small server, but a real staff team wants more control: let helpers clear messages without giving them Manage Messages, keep /backup load for two trusted people, stop a member from spamming /economy rob every ten seconds…

iHorizon gives you three tools for that, and this section explains each of them in depth:

Tool What it answers Commands
Permission levels Who is part of the staff, and how high (Perm 1 to Perm 9) /perm create-roles, /perm edit-roles, /perm set-user
Command rules Which level, roles or members can run a given command /perm command
Usage limits How often each member can run a command /commandlimit

And two pages to see it in action:

How iHorizon decides if a command runs

Every time someone runs a command (slash or prefix), iHorizon goes through these checks, in this order. The first one that fails stops the command.

Anti-spam and blacklist. One command per second per member, and members blacklisted from iHorizon are refused.

Not configurable: it protects the bot itself.

Command rule (/perm command). If the command has a rule, the member must match it: the required level, one of the listed roles, or listed by name.

If they match, the Discord permission check (step 4) is skipped. If they don't, the command stops here, even for an Administrator.

Usage limit (/commandlimit). The member must not have used the command too many times in the time window.

The server owner and the server's iHorizon owners are never limited.

Discord permission. Only when no rule let the member in at step 2: the member needs the Discord permission the command declares (Ban Members for /mod ban…).

Command cooldown. Some commands have their own built-in waiting time (for example the economy rewards).

The one rule to remember

A command rule replaces the Discord permission for that command. If you set /mod ban to Perm 5, every Perm 5+ member can ban even without Ban Members, and an Administrator who isn't Perm 5 can't. That's what makes the system powerful: you build your staff hierarchy in iHorizon, not in Discord's permissions.

Who is always allowed

  • The server's iHorizon owners (the list managed with /owner) pass every command rule and every usage limit. The Discord server owner is added to that list automatically.
  • But not Discord permissions. The owner list only opens the commands that have a rule. A command without a rule asks them for its Discord permission (Ban Members for /mod ban…), like everyone else.
  • Nobody else is special. Discord's Administrator permission does not bypass a command rule, and neither do iHorizon's developers.

Let an owner use a command without its Discord permission

Give the command a rule (/perm command): the owner list passes it, and whoever passes a rule no longer needs the Discord permission.

Some commands keep their own protection whatever the rules say: /perm create-roles and /perm edit-roles always require the Discord server owner, and owner-only commands stay owner-only.

Quick start

  1. Create the level roles: the server owner runs /perm create-roles. iHorizon creates nine roles, Perm 1 to Perm 9.
  2. Give them to your staff like any Discord role, or map your existing staff roles to levels with /perm edit-roles.
  3. Put rules on sensitive commands: /perm command action:Change command permission command:mod ban permission:Perm 5.
  4. Limit what can be spammed: /commandlimit action:Set command:economy rob count:3 window-time:1h.
  5. Check the result with /perm command action:List all commands permission set and /commandlimit action:List.

From the dashboard

Everything on these pages can also be set from the dashboard, module Permissions (Administrator or server owner): command rules, level roles, member levels and usage limits, with a command search. Only the server owner can change the level roles, as with the commands.