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

# Lockdown

Completely Lockdown your entire server. Requires the "Administrator" permission to use.

When running the command the user will be met with buttons asking to confirm or deny the lockdown you want to place on your server

<figure><img src="https://455014626-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FWDhLy7fnucL67uEj10BQ%2Fuploads%2FP1MggYymTCxKjyFZ9iLj%2F2022-08-28%2016_26_36-bot-commands%20-%20Discord.png?alt=media&amp;token=8c856284-6525-4f64-8be8-cb6e16b9600a" alt=""><figcaption></figcaption></figure>

If the user clicks deny the lockdown will abort and the lockdown embed will delete, the bot will then send confirmation that the lockdown was aborted and delete that embed within 7 seconds

<figure><img src="https://455014626-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FWDhLy7fnucL67uEj10BQ%2Fuploads%2Fgw3vlEFxEh6PHvYfpFoU%2F2022-08-28%2016_27_11-bot-commands%20-%20Discord.png?alt=media&amp;token=5e4b77ae-9b1a-472b-b748-c071e7841eba" alt=""><figcaption></figcaption></figure>

If the user clicks confirm then the bot will lock every channel in the guild and send confirmation. A channel called 'lockdown' will also be created.

<figure><img src="https://455014626-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FWDhLy7fnucL67uEj10BQ%2Fuploads%2F3lMZjlI5U2VgtgbkTu29%2F2022-08-28%2016_27_46-bot-commands%20-%20Discord.png?alt=media&amp;token=6175c882-c5cf-442e-86d7-d312114fc200" alt=""><figcaption></figcaption></figure>

If the user attempts to lock the server without the correct permissions, the bot will throw an error

<figure><img src="https://455014626-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FWDhLy7fnucL67uEj10BQ%2Fuploads%2FGp24QnXZNShZ9Mp1ujHL%2F2022-08-28%2016_31_38-bot-commands%20-%20Discord.png?alt=media&amp;token=ef509a9f-d91b-41c7-9c8a-1c1e89b39bec" alt=""><figcaption></figcaption></figure>

{% hint style="warning" %}
The command will set the permission for @everyone for every single one of your channels to;

<img src="https://455014626-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FWDhLy7fnucL67uEj10BQ%2Fuploads%2FDp1H6T2hfmsGieIT4CG2%2Fcross-mark-button-facebook.png?alt=media&amp;token=eebdb1fb-9f14-4856-bff6-0ec494a413f9" alt="" data-size="line">**View Channel**

You must make sure that when all of your channels are locked no other role will override the current permissions that have been set by Fatal, if this happens the lockdown feature will be useless.
{% endhint %}
