Example: a stolen moderator account at 3 a.m.
Back to Horizon Café, the community server of the permissions example. Lina owns it, Aya is co-owner. One thing differs from that example: the @Head Admin role does server maintenance, so in Discord it has Administrator, plus Manage Server, Manage Channels and Ban Members ticked. Noah is a Head Admin (Perm 8).
The setup
The server owner, Lina, sets everything up once:
/protect
Global sanction: Cancel + Derank
Channel deletion, Role deletion, Webhooks, Ban members, Kick members → Member(s) of allowlist
Admin role grants, Server edits → Nobody. (Except server owner)
/allowlist add member:@Aya
/nightmode
Time range 23:00 → 08:00, timezone Europe/Paris
Derank bots on, Warn server owner on, Enable night mode
/guildconfig block bot action:Power On
/honeypot config
Trap channel #do-not-post, action Ban users, logs channel #honeypot-logs
/antispam manage
Load Preset → Guard Mode, Save config
/setlogs type:Setup all channels
And from the permissions example: mod ban requires Perm 5, with a limit of 5 uses per 10 minutes.
iHorizon's role is at the very top of the list, with Administrator.
The night
23:00. Night mode starts. @Admin and @Head Admin lose Administrator. Noah's role still has Manage Server, Manage Channels and Ban Members: those were ticked separately.
02:58. Noah's account is stolen. He clicked a fake "free Nitro" link before going to bed; a script now controls his session.
03:02. The script deletes channels as fast as it can. Protection's Channel deletion rule fires at the first one: Noah isn't on the allowlist. He is deranked right away, once, and every channel deleted in the meantime is recreated in its category with its permissions.
From that moment, Noah's account has no role: its next deletions are simply refused by Discord.
03:03. It tries iHorizon's commands. /mod ban needs Perm 5, and Noah's Perm 8 came from @Head Admin, which he no longer has: refused.
03:04. It posts a scam in every channel. Noah is now an ordinary member: the AntiSpam mutes him for flooding, and his message in #do-not-post makes the honeypot ban him and delete everything he posted in the last 2 hours, everywhere.
08:00. Night mode ends. @Admin and @Head Admin get Administrator back. Lina gets the list in DM.
The following roles have been modified:
@Head Admin
Lina's morning DM.
The morning cleanup
Lina wakes up to a server that looks almost normal. What she checks, in order:
- What happened: the server's audit log in Discord shows Noah's deletions next to iHorizon's repairs, whose reason reads
[Protect] Reverting an action of …, and the derank,[Protect] Rule "deletechannel" broken. The #honeypot-logs channel has the honeypot report; the Roles Logs and Channel Logs from/setlogsshow the rest. - What can't come back: the recreated channels have their settings and permissions, but they are empty: Discord deletes a channel's messages with it. Invites and webhooks that pointed to the old channels must be recreated.
- Noah: once he has changed his password and turned on 2FA, Lina unbans him (
/mod unban) and gives him @Head Admin back. iHorizon doesn't hand roles back after a derank: the Roles Logs show which ones he had.
What happens if…
| Situation | What happens |
|---|---|
| The script deletes channels or roles by hand | Every one is recreated; Noah is deranked once |
| It bans members by hand | Each ban is reverted; Noah is deranked at the first one |
| It gives itself Administrator through a role | Admin role grants: the grant is reverted, Noah is deranked |
| It adds a nuke bot while Noah still has Manage Server | The bot blocker bans the bot, deranks Noah and DMs Lina |
It runs /mod ban through iHorizon before the derank |
Protection doesn't see it (iHorizon did the ban). The /commandlimit stops it after 5 bans in 10 minutes; unban them in the morning |
| Noah had the derogation role | Night mode doesn't touch it, but Protection reverts and deranks the same way: the derogation role is below iHorizon |
| Noah was on the allowlist | His channel deletions and bans are let through. Keep the allowlist to one or two people |
Noah was on the /owner list |
Protection lets everything through, and the bot blocker lets his bots in. Keep that list even shorter |
| It's Lina's account, the server owner's, that was stolen | Nothing can stop it: the owner is above every shield. 2FA on the owner account is the only protection |
| iHorizon's role wasn't at the top at 23:00 | Night mode didn't start and Lina got a DM saying why. Protection still worked |
| A wave of brand-new spam accounts joins and posts everywhere | The age gate kicks them, the captcha holds the rest, and those that post in #do-not-post are banned by the honeypot |
What made the difference
No single shield did it. Night mode removed the biggest permission, Protection took away the rest within a second, the command rules closed iHorizon's own commands, and the honeypot finished the job once the account was an ordinary member. Remove any one of them and the night goes worse.