> ## Documentation Index
> Fetch the complete documentation index at: https://docs.zeonbot.xyz/llms.txt
> Use this file to discover all available pages before exploring further.

# Lockdown System

> Instant server lockdown to halt permissions abuse.

The **Lockdown System** is a manual and automated defense protocol that immediately strips dangerous permissions from all roles in your server and reorganizes role hierarchy to prevent ongoing damage. It is deeply integrated with Panic Mode.

***

## How Lockdown Works

When a Lockdown is initiated, ZEON performs two critical actions simultaneously:

1. **The Wall Role:** ZEON identifies a safe "wall" role and elevates its position directly underneath the bot's highest role, acting as a barrier to block permissions management.
2. **Permission Stripping:** Every single role below the bot that possesses dangerous permissions (Administrator, Ban Members, Manage Channels, etc.) is instantly stripped of those specific permissions.

ZEON saves a pristine snapshot of the exact permissions and role positions before the lockdown, allowing you to perfectly restore the server once the threat is neutralized.

***

## Commands

| Command                 | Description                                                                                    |
| :---------------------- | :--------------------------------------------------------------------------------------------- |
| `.panicmode activate`   | Instantly initiates a full server lockdown, stripping permissions and elevating the wall role. |
| `.panicmode deactivate` | Restores all roles to their exact permissions and positions prior to the lockdown.             |

<Warning>
  Only one active lockdown snapshot can exist at a time. If the server is already locked down, running `.panicmode activate` again will fail to prevent overwriting the original recovery snapshot.
</Warning>
