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

# Lockdown

> Close every text channel and pause invites with one command during a raid, then put each channel back exactly as it was.

Use a lockdown when a raid or a spam wave is happening right now and everyone has to stop writing at once. One command closes the server for everyone but the staff; ending it, by hand or after the minutes you chose, gives every channel back its own permissions.

## What it does

A lockdown, while it is on:

* closes the text channels so nobody can write, react or start threads (everyone, not the staff)
* deletes the invites and blocks new ones
* can raise the verification level of the server to High

When it ends, **every channel goes back exactly as it was** (a channel that allowed writing allows it again, one that denied it still denies it), the invites are free again and the verification returns to what it was.

```javascript Syntax theme={null}
!lockdown start [reason] [minutes]
!lockdown end
!lockdown status
!lockdown config [pause_invites] [raise_verification] [auto_end_minutes] [announce_channel] [message]
!lockdown channel add|remove <channel>
```

```javascript Example theme={null}
!lockdown start "Raid of new accounts" 30
!lockdown start --reason "Raid of new accounts" --minutes 30
```

Needs **Administrator**. `!raidmode` and `!raidstate` are aliases of `!lockdown`. `!lock` is a different command: it only locks the channel you are in (see [Channel](https://wiki.petto.sbs/moderation/moderation.md#channel)). With no channels chosen, it closes every text channel. It can end by itself after the minutes you choose (a job checks every minute), and it posts a notice in the channel you pick.

![liam starts a lockdown for a raid of new accounts and Petto says 14 channels were closed, 3 invites deleted and it ends in 30 minutes](https://mintcdn.com/wikipetto/JwUaNj8yWvXJpXTp/images/discord/moderation/lockdown.webp?fit=max\&auto=format\&n=JwUaNj8yWvXJpXTp\&q=85\&s=ae108b64732acd66494b4df36a06d720)

In Discord: a lockdown started for 30 minutes.

![In announcements Petto posts the lockdown notice: the server is closed for a moment, with the reason](https://mintcdn.com/wikipetto/JwUaNj8yWvXJpXTp/images/discord/moderation/lockdown-notice.webp?fit=max\&auto=format\&n=JwUaNj8yWvXJpXTp\&q=85\&s=bda0af76dcefe1fdca2aadd4408b3834)

In Discord: the notice the members read in the channel you picked.

> [accordion] !lockdown end
>
> ![liam ends the lockdown and Petto says 14 channels were reopened](https://mintcdn.com/wikipetto/JwUaNj8yWvXJpXTp/images/discord/moderation/lockdown-end.webp?fit=max\&auto=format\&n=JwUaNj8yWvXJpXTp\&q=85\&s=398d4decbffd8766f3420db140fdf1c0)
>
> In Discord: the lockdown ended and every channel reopened.

> [accordion] !lockdown status
>
> ![kira checks the status: lockdown on since 6 minutes ago, ends in 24 minutes, every text channel, invites paused and verification raised](https://mintcdn.com/wikipetto/JwUaNj8yWvXJpXTp/images/discord/moderation/lockdown-status.webp?fit=max\&auto=format\&n=JwUaNj8yWvXJpXTp\&q=85\&s=a1ddcc8281026b1f19098ede9c5291b9)
>
> In Discord: a lockdown that is on, and how it is set.

> [accordion] !lockdown config
>
> ![liam sets pause invites, raise verification, 30 minutes and announcements, and Petto shows the settings](https://mintcdn.com/wikipetto/JwUaNj8yWvXJpXTp/images/discord/moderation/lockdown-config.webp?fit=max\&auto=format\&n=JwUaNj8yWvXJpXTp\&q=85\&s=9424ed0ada80edc24a696a0c90ac12d9)
>
> In Discord: what a lockdown does: invites, verification, the automatic end and the notice channel.

> [accordion] !lockdown channel add
>
> ![liam adds general to the channels a lockdown closes](https://mintcdn.com/wikipetto/JwUaNj8yWvXJpXTp/images/discord/moderation/lockdown-channel-add.webp?fit=max\&auto=format\&n=JwUaNj8yWvXJpXTp\&q=85\&s=c29de5357a675ce17425057f1bd9bbb9)
>
> In Discord: a channel the lockdown closes.

> [accordion] !lockdown channel remove
>
> ![liam removes general and Petto says that with no channels chosen every text channel is closed](https://mintcdn.com/wikipetto/JwUaNj8yWvXJpXTp/images/discord/moderation/lockdown-channel-remove.webp?fit=max\&auto=format\&n=JwUaNj8yWvXJpXTp\&q=85\&s=70f99241674e3d404743ad0fc602c2d1)
>
> In Discord: with no channels chosen, every text channel is closed again.

## Anti Raid can start it

In `!automod raid` (and in the dashboard, **Anti-raid & nuke**), set the action to `lockdown`. When a burst of joins is detected, the lockdown starts by itself.

The anti-nuke's [panic mode](https://wiki.petto.sbs/moderation/anti-nuke.md#panic-mode) can start it too, when several protections act within a few minutes.

The dashboard has a **Lockdown** tab with the state, **Start** and **End** buttons and what it does.

![The Lockdown tab with the start button, the invite and verification options, the automatic end, the notice channel and the notice](https://mintcdn.com/wikipetto/NrGrZ7c5mnuxcpr5/images/dashboard/moderation/lockdown.webp?fit=max\&auto=format\&n=NrGrZ7c5mnuxcpr5\&q=85\&s=4508b3cdc6f202ff272ac5fd4a3e7981)

Dashboard → Moderation → Anti-raid & nuke → Lockdown: start it and choose what it does.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.