Protection
The Protection module watches sensitive actions on your server, like deleting channels, banning members, editing the server, or handing out admin roles, and steps in the moment someone who shouldn't be doing them tries anyway. iHorizon reacts as soon as Discord reports the action: it undoes it (a deleted channel is recreated, a new role is deleted, a ban is lifted...) and, at the same time, sanctions the member responsible. Even a compromised admin account or a rogue bot gets stopped before it can wreck your server.
Everything is configured from a single panel opened with /protect. For each of the 13 rules, you decide whether it is active, who is allowed to bypass it, and what happens to anyone who breaks it. The /allowlist commands manage your circle of trusted people, the ones the rules can let through.
Who is never affected
The server owner, the server's iHorizon owners (managed with /owner, see the Owner page) and iHorizon itself are never blocked or sanctioned by the Protection module, whatever the rule says.
Setting it up in four steps
- Give iHorizon the Administrator permission and drag its role as high as possible in your role list. iHorizon can only derank, mute, kick or ban members whose highest role is below its own, and it recreates roles below its own position.
- Add the people you trust to the allowlist with
/allowlist add. - Run
/protect, pick a global sanction, then enable the rules you need, one by one. - For each enabled rule, choose who may bypass it and, if needed, a sanction specific to that rule.
/allowlist
Subcommand for protection category!
Subcommands
/allowlist add— Adding an user in the allowlist!/allowlist remove— Removing an user in the allowlist!/allowlist show— List the users in the allowlist!
/allowlist add [member]
Adding an user in the allowlist!
| Option | Type | Required | Description | Choices |
|---|---|---|---|---|
member |
User | No | Whats is the member then? | - |
Server owner only
Only the server owner can use this command.
Adds a member to the allowlist, the list of people you trust to perform protected actions freely. Reserve it for the handful of people you would trust with the server itself: a rule set to Member(s) of allowlist lets them through, while everyone else is reverted and sanctioned.
If you run the command without a member, it simply displays the current allowlist, exactly like /allowlist show.
The command also works with the prefix: +wl @member adds a member, and +wl on its own lists the allowlist.
/allowlist remove <member>
Removing an user in the allowlist!
| Option | Type | Required | Description | Choices |
|---|---|---|---|---|
member |
User | Yes | Whats is the member then? | - |
Server owner only
Only the server owner can use this command.
Removes a member from the allowlist. From then on, protection rules apply to them like anyone else. The server owner can never be removed from the allowlist.
With the prefix, use +unwl @member.
/allowlist show
List the users in the allowlist!
Server owner or allowlisted members only
Only the server owner, or members already on the allowlist, can use this command.
Displays everyone currently on the allowlist, so you can review who is trusted at a glance. The server owner is added to the list automatically the first time it is displayed.
The allowlist as displayed by /allowlist show.
With the prefix, use +wl-list (or +allowlist show).
/protect
Open the interactive protection configuration panel!
Full guide
Who Protection lets through, the one-sanction-per-burst rule, what it can't see and a recommended layout: Protection in depth. How it fits with night mode and the other shields: Server security.
Server owner only
Only the server owner can use this command.
Opens the Protect Control Panel, where every protection rule is configured. The panel is also available with the prefix command +protect. Only the person who opened it can use its menus.
iHorizon needs the Administrator permission
If iHorizon does not have the Administrator permission, the panel does not open and asks you to grant it first.
The overview
When the panel opens, it lists every rule, grouped into four categories (Server & webhooks, Channels, Roles and Members), with its state and, for enabled rules, who may bypass it.
Server edits — Enabled — Nobody. (Except server owner)
Channel edits — Disabled
Channel deletion — Enabled — Member(s) of allowlist
Role deletion — Enabled — Member(s) of allowlist
Role edits — Disabled
Admin role grants — Enabled — Nobody. (Except server owner)
Ban members — Enabled — Member(s) of allowlist
Kick members — Enabled — Member(s) of allowlist
Unban members — Disabled
The Protect Control Panel overview, with the global sanction menu and the rule selector.
- The first menu sets the global sanction, the one used by every rule that does not have its own.
- Select a rule to configure opens the detail view of a rule, or of All rules at once.
- Refresh reloads the saved configuration, Close panel ends the session and disables the components.
Configuring a rule
Selecting a rule shows its state, who may bypass it and the sanction that applies, along with the controls to change them.
When this rule is triggered, the action is automatically undone and the sanction is applied to the member responsible.
Sanction: Cancel + Derank (Global default)
The detail view of a rule, with the sanction menu opened.
- Enable / Disable turns the rule on or off. A newly enabled rule lets the allowlist through and uses the global sanction.
- Select who can bypass this rule (available once the rule is enabled):
- Member(s) of allowlist: allowlisted members may perform the action, everyone else is reverted and sanctioned.
- Everyone: nobody is blocked. The rule stays configured but lets every action through.
- Nobody. (Except server owner): even allowlisted members are reverted and sanctioned.
- Select the sanction to apply: Global default follows the global sanction; any other choice overrides it for this rule only.
Every change is saved immediately, and iHorizon confirms it with a message only you can see (for example The rule Channel deletion is now enabled!). Back returns to the overview.
Configuring every rule at once
All rules, the first choice of the rule selector, shows how many of the 13 rules are enabled and the bypass and sanction they share (Mixed when they differ).
- Enable all turns on every disabled rule, Disable all turns every rule off. Rules already in the requested state are left as they are.
- Select who can bypass this rule and Select the sanction to apply change every enabled rule in one go. Both menus are locked while no rule is enabled.
iHorizon confirms how many rules were changed (for example: 13 rules are now enabled!).
The rules
| Rule | What triggers it | What iHorizon undoes |
|---|---|---|
| Webhooks | Creating, editing or deleting a webhook | A new webhook is deleted, an edited one gets its name, channel and avatar back. A deleted webhook cannot be brought back: the member is only sanctioned. |
| Server edits | Editing the server settings | Name, description, icon, banner, invite and discovery backgrounds, AFK channel and timeout, system, rules, community updates and safety alerts channels, verification level, default notifications, explicit content filter, language, boost progress bar and the 2FA requirement go back to their previous values. |
| Channel creation | Creating a channel | The new channel is deleted. |
| Channel edits | Editing a channel or its permissions | The channel settings (name, topic, NSFW, position, category, slowmode, bitrate, user limit, region, forum tags...) and the permission overwrites that were added, changed or removed are restored. |
| Channel deletion | Deleting a channel | The channel is recreated with its settings, category and permissions. When a category is deleted, its channels are put back into the recreated category. |
| Role creation | Creating a role | The new role is deleted. |
| Role deletion | Deleting a role | The role is recreated with its name, permissions, color, icon and position, its channel permissions are restored, and it is given back to the members who had it (except the person who deleted it). |
| Role edits | Editing a role | Name, permissions, color, display separately, mentionable, icon and emoji are restored. |
| Admin role grants | Granting the Administrator permission: giving a member an admin role, creating a role with Administrator, or adding Administrator to an existing role (including @everyone) |
The grant is reverted. |
| Member role edits | Adding or removing roles on a member. Members picking their own roles through Onboarding or Channels & Roles are not concerned | Added roles are removed and removed roles are given back. |
| Ban members | Banning a member | The member is unbanned. |
| Kick members | Kicking or pruning members | A kick cannot be undone: the member responsible is only sanctioned. |
| Unban members | Unbanning a member | The member is banned again. |
Admin role grants: the anti-takeover rule
Admin role grants only reacts when the Administrator permission is actually being handed out, so you can leave Role creation, Role edits and Member role edits disabled for daily moderation and still stop anyone from giving themselves full power. When it applies to the same action as one of those rules, its sanction is the one used.
The sanctions
| Sanction | What happens to the member responsible |
|---|---|
| Cancel the actions only | Their action is undone, nothing more. |
| Cancel + Derank | Their action is undone and iHorizon removes every role it can from them. If the culprit is a bot, the permissions of its own integration role are also stripped. |
| Cancel + Ban | Their action is undone and they are banned. If iHorizon cannot ban them (their role is above iHorizon's), it deranks them instead. |
| Cancel + Kick | Their action is undone, they are deranked, then kicked, so they cannot get their roles back by rejoining. |
| Cancel + Mute (10 min) | Their action is undone and they are timed out for 10 minutes. Administrators cannot be timed out, so they are deranked first, then muted. |
One sanction per raid, every action undone
When someone fires off many protected actions in a row (deleting ten channels, for example), iHorizon undoes every one of them but sanctions the person once. The sanction is only upgraded if they then break a rule with a harsher sanction (for instance from a mute to a ban).
Keep iHorizon's role on top
Roles placed above iHorizon's highest role cannot be removed, and members holding them cannot be sanctioned. Recreated roles are also placed, at most, just below iHorizon's role. Keeping iHorizon at the top of your role list is the single most important setting for this module.