# How to setup lock server

The lock server command is extremely helpful to shutdown a server all at once without having to run the lock channel command for every channel you want to lock down. If you do not know Discords permissions very well it is highly recommended to read [Discords documentation ](https://support.discordapp.com/hc/en-us/articles/206029707-How-do-I-set-up-Permissions-)on this very matter. In order to keep this command fast and snappy it operates differently from [lockchannel](https://gideon-foxo.gitbook.io/kettu/how-to-set-up/how-to-set-up-lock-channel). Instead of setting channel overrides it changes the default `@everyone` role. This sadly is a bit harder to setup and work around but it is still very usable.&#x20;

### How to setup proper permissions&#x20;

In order to understand how to setup your discord perms for this to work you need to know how the command works. When you run the command it changes the default `@everyone` role to only read message history.&#x20;

![](https://3940471074-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M4KwQbTsFQaZNVPU7zr%2F-M4uDIiaFme_7nDMM0Is%2F-M4uKeHt3nPmVtGAoGxO%2Funknown.png?alt=media\&token=7d7b3272-be3c-4732-84f1-404bd2bfd5c6)

{% hint style="danger" %}
Kettu does not remember what the permissions the `@everyone` role had when you unlock the server.
{% endhint %}

When you unlock a server it sets the `@everyone` role to Send Message and Read Message history. **You must shift all other perms to other roles or channel overrides.** Any roles that have the send message permission will override/ignore the lockserver command as they are not affected by it. Channel overrides that also have send messages to ✅ will also override/ignore the command. Make sure only your staff/bots have this perm.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://gideon-foxo.gitbook.io/kettu/how-to-set-up/how-to-setup-lock-server.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
