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

# Lock

Commands to block interactions for extraordinary situations.

## Lock

Locks the specified channel.

{% code title="Usage:" %}

```scala
?lock <#channel/id> [time] [message]
```

{% endcode %}

<div align="left"><img src="https://content.gitbook.com/content/tU9ghzvpb2y8deTjz6yA/blobs/NxamEbthdmT8hgdd4q4t/image.png" alt=""></div>

## Unlock

Unlocks the specified channel.

{% code title="Usage:" %}

```c
?unlock <#channel/id> [message]
```

{% endcode %}

<div align="left"><img src="https://content.gitbook.com/content/tU9ghzvpb2y8deTjz6yA/blobs/BBRqbBk7Rz1uGwfOggrh/image.png" alt=""></div>

## <mark style="color:red;">Lockdown</mark>

Locks all channels in the server in the event of a raid attack.

{% code title="Usage:" %}

```scala
?lockdown
```

{% endcode %}

<div align="left"><img src="https://content.gitbook.com/content/tU9ghzvpb2y8deTjz6yA/blobs/9tz7i1CEOi6zfM3vKNXu/image.png" alt=""></div>

## Lockdown End

When the raid is over, you unlock all channels.

{% code title="Usage:" %}

```scala
?lockdown end
```

{% endcode %}

<div align="left"><img src="https://content.gitbook.com/content/tU9ghzvpb2y8deTjz6yA/blobs/kvU4qbWSHbP5qBML8dpS/image.png" alt=""></div>

{% hint style="danger" %}
The execution of lockdown commands may take a long time due to channel congestion. Please do not use these commands unless you sense high danger.
{% endhint %}
