> 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/lock.md).

# Lock

Locks the channel to prevent people from typing. Requires the "Administartor" permission to use.

The user isn't required to input all options, they are optional

<figure><img src="https://455014626-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FWDhLy7fnucL67uEj10BQ%2Fuploads%2FFqrff7nbkXixwfvxQRw9%2F2022-08-28%2016_17_22-bot-commands%20-%20Discord.png?alt=media&amp;token=89a42602-110f-4b81-965b-4a18f173f2aa" alt=""><figcaption></figcaption></figure>

The user isn't required to provide a reason if you leave the reason blank it will return as "None Provided". The user also doesn't need to mention the channel, if the channel isn't mentioned then the bot will lock the channel the command was executed in. You don't need a screenshot for this, you get the gyst.

If the user executes the command without the correct permission, it will throw an error.

<figure><img src="https://455014626-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FWDhLy7fnucL67uEj10BQ%2Fuploads%2Fj2yI5HPJo5iTCqSWf3nq%2F2022-08-28%2016_19_57-bot-commands.png?alt=media&amp;token=bfa05a29-6e74-490e-b27a-ac023146d84f" alt=""><figcaption></figcaption></figure>

{% hint style="warning" %}
The command will set both permissions for the @everyone role in the channel setting 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">**Send Messages**

<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 the channel is locked no other role will override the current permissions that have been set by Fatal, if this happens the channel lock will be completely useless.
{% endhint %}
