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

# lock

### Usage

\<prefix> lock \[all || role name]

### Examples

\<prefix> lock  -> Will deny the SEND\_MESSAGES permission to @everyone role.

\<prefix> lock Member -> Will deny the SEND\_MESSAGES permission to **M**ember role.

\<prefix> lock all  -> Will deny the SEND\_MESSAGES permission to all the roles (lower than bot's highest one).

### Necessary permissions

MANAGE\_MESSAGES or moderator role

###
