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

# Moderation commands

### About Moderation

Kettu has a multitude of unique moderation commands. On commands where Kettu tries to send a DM, Kettu will add a short note if the message failed to be delivered. An example is show below.

![Note if DM failed to be delivered](https://cdn.discordapp.com/attachments/688594818007564369/697849440290996365/unknown.png)

This is an example of a message sent to a user on being banned from a server. The moderator is not included this message.

![Example of a ban DM](https://cdn.discordapp.com/attachments/697801753202131035/697801834592731146/unknown.png)

All moderation commands (with the exception of check) log in discords audit log the moderator who ran that command so you always know who did it. An example is shown below.

![Example of an audit log](https://cdn.discordapp.com/attachments/688594818007564369/697802083079815188/unknown.png)

### Command guide

{% hint style="info" %}
Key

<> = Required arguments

\[] = Optional arguments
{% endhint %}

{% hint style="danger" %}
&#x20;Do **not** type out `<>` or `[]` when running commands.
{% endhint %}

`ban <@User/ID> [reason]`\
Bans a member from a server even if they are not in the server. A note will appear if the bot could not DM the user. Does not delete any messages.\
Aliases: `b`, `bean`, `barn`, `hackban`, `banne`

`check <@User/ID>`\
Checks if a user is banned from a server and gives some other general info about the user.\
Aliases: `search`

`deleteban <@User/ID> [reason]`\
Bans a member from the server deleting their messages from the last 7 days even if they are not in the server. A note will appear if the bot could not DM the user.\
Aliases: `db`, `purgeban`, `dban`, `pban`, `delban`

`kick <@User/ID> [reason]`\
Kicks a member from the server. A note will appear if the bot could not DM the user.\
Aliases: `k`, `boot`

`lockchannel [channel]`\
This command locks a channel. Click here to read the documentation on how to setup the permissions to make sure this command works.\
Aliases: `lc`, `lock`

`unlockchannel [channel]`\
&#x20;This command unlocks a channel.\
Aliases: `uc`, `unlock`

`lockserver`\
This command locks down the server so no one can speak. Click here to read the documentation on how to setup the permissions to make sure this command works.\
Aliases: `ls`, `lockdown`

`unlockserver`\
This unlocks a server.\
Aliases: us, endlockdown

`slowmode <0-21600> [channel]`\
Sets a slowmode on a channel. If a channel is mentioned the slowmode will be set there.\
Aliases: `slow`, `sm`, `setslowmode`

`softban <@User/ID> [reason]`\
Bans then unbans a member from the server making it like a kick while clearing the last 24 hours of messages. A note will appear if the bot could not DM the user.\
Aliases: `sb`, `deletekick`

`unban <@User/ID> [reason]`\
Unbans a member from the server.\
Aliases: `ub`

`warn <@User/ID> <reason>`\
Warns a member from the server. A note will appear if the bot could not DM the user.\
Aliases: `w`, `strike`\
\
\ <br>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://gideon-foxo.gitbook.io/kettu/commands/moderation-commands.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
