> For the complete documentation index, see [llms.txt](https://krankey.gitbook.io/partybeast/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://krankey.gitbook.io/partybeast/user-commands/lock.md).

# /lock

This page describes how to use the /lock command

**Command**

```
/lock
```

Typing the `/lock` command will lock the room preventing any users not already in the room from joining.

When a room owner has successfully locked the room they will receive a message like below:

![](https://2037455694-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MK5-dtBrsWXcOXZzLr5%2Fuploads%2FeI0l0pTd6sl9zXhZxspZ%2Fimage.png?alt=media\&token=d5484ce5-53e1-44c4-aacb-9a90586a2227)

The room can be unlocked with the `/unlock` command allowing users to enter or allow individual users with the `/invite` command&#x20;

**Required Permissions**

In the event that PartyBeast does not have the correct permissions to make the changes required to kick a user or change the permissions to ban a user you will receive the following error message:

![](https://2037455694-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MK5-dtBrsWXcOXZzLr5%2Fuploads%2FxU4DIPJk4JqiySzmeEzB%2Fimage.png?alt=media\&token=e6740357-51f1-42f2-9347-0bc123ddbcae)

In this case you should check that the PartyBeast **role** has the following permissions available on the **category** where new channels are created.\
Be aware that this should apply to any roles which you have assigned PartyBeast:

* View Channel
* Manage Channel
* Manage Permissions
* Connect
* Manage Members
