> For the complete documentation index, see [llms.txt](https://infinitybot.gitbook.io/infinitybot-docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://infinitybot.gitbook.io/infinitybot-docs/moderation/anti-nuke/lockdown-commands.md).

# Lockdown Commands

You can lock down specific parts of your Discord server with the commands below.

### Lockdown Server Permissions

You can use the `/setup perm-lockdown` command to select a role that you would like to allow to lock down the server.

| Command Option Name  | Function                                                                                 |
| -------------------- | ---------------------------------------------------------------------------------------- |
| action               | With this option you can select the action that you would like to take.                  |
| lockdown-server-role | With this option you can select the role that you want to allow to lock down the server. |

{% hint style="danger" %}
ALL users with the selected role will be able to put your server in lock down.&#x20;

You should only select admin roles for this permission.
{% endhint %}

### Create a Custom Lockdown Channel

With the `/setup lockdown-channel` command you can create a custom lockdown channel. The bot will then send a panel where users with the lockdown server permission can lock down the server with just a button press.

![](https://2255898787-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZqXmdaTQZknKkvcG0Uxz%2Fuploads%2FhR8FgdSoPlrI5uZls2Ou%2Fimage.png?alt=media\&token=7644201d-b104-4eea-96a7-1eb601dd50ec)

### Quarantine a User

You can use the `/quarantine add` command to quarantine a user. If a user has been quarantined, they can no longer use any of my [action commands](/infinitybot-docs/moderation/anti-nuke/action-commands.md), if they preform any actions trough Discord, they will be kicked from the server by the bot.&#x20;

| Command Option Name | Function                                                            |
| ------------------- | ------------------------------------------------------------------- |
| user                | With this option you can select a user that you want to quarantine. |
| reason              | An optional reason for your action.                                 |

#### Remove a User from Quarantine

You can remove a user from quarantine with the `/quarantine remove` command after they have been quarantined by the command or by the bot.&#x20;

| Command Option Name | Function                                                                                                                                  |
| ------------------- | ----------------------------------------------------------------------------------------------------------------------------------------- |
| user                | With this option you can select a user that you want to unquarantine or that you want to clear the heath from.                            |
| clear-heath         | With this option you can select what heath you want to clear. If you wish to just remove a user from quarantine, leave this option empty. |
| reason              | An optional reason for your action.                                                                                                       |

### General Server Lockdown

You can use the `/antiraid lockdown` command to lock down a server. This will lock all actions trough my commands, messages from users without the manage server permission, all new DMs, all server invites and some other stuff.

![](https://2255898787-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZqXmdaTQZknKkvcG0Uxz%2Fuploads%2FJaeZxBVzphXoWKYzeYVP%2Fimage.png?alt=media\&token=9e17f4aa-cfa0-481e-98d3-373a077877b5)

{% hint style="info" %}
Both the `!Q` prefix command and the [lockdown panel](#create-a-custom-lockdown-channel) have the same effect as this command.
{% endhint %}

#### Removing a Server from General Lockdown

You can remove a server from the lockdown with the `/antiraid lockdown-remove` command. This will undo all actions done with the lockdown command, prefix command or lockdown panel.

### Channel Lockdowns

You can also lock down all channels with the `/antiraid channel-lockdown` command. This will lock all messages from being send for all users in your server.&#x20;

| Command Option Name | Function                                                                                                                                            |
| ------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------- |
| blacklist           | In this option you can add the roles or users that you want to block from sending messages. (You can enter @everyone if you want to block everyone) |
| whitelist           | In this option, you can @mention roles or users that you want to still allow to send messages.                                                      |
| ignored             | In this option you can tag all channels that you do not want to be locked. If you want all channels locked, enter N/A in this option.               |

#### Remove Channel Lockdown

You can remove the channel lockdown with the `/antiraid channel-lockdown-remove` command.

### Account Messages Lockdown

You can also lockdown your own account with the `/panic` command. InfinityBot will then make sure to delete all new messages from your account that the bot can see, meaning this feature will not work in servers where the bot is not active and in DMs.

#### Disable Panic Mode

You can disable the panic mode (account messages lockdown) by using the `/panic` command again or by pressing the button that you got in your DM.

***

#### [Back to main AntiNuke page](/infinitybot-docs/moderation/anti-nuke.md)
