> For the complete documentation index, see [llms.txt](https://docs.sonoransoftware.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.sonoransoftware.com/bot/tutorials/usage/moderation.md).

# Moderation

Using SonoranBot, you have access to several commands that are all logged to a special channel. Keep moderation actions organized and easily control access!

{% hint style="info" %}
Moderation commands are available to any Discord server linked to a community, including those on the Free version of CAD and/or CMS!
{% endhint %}

## Getting Started

### Set Permissions

{% hint style="warning" %}
The permissions in the below table are also what SonoranBot will need to perform them, otherwise you will get an error message.
{% endhint %}

By default, all commands are set to what you expect:

| Command | Required Permission       |
| ------- | ------------------------- |
| `/ban`  | Ban Members               |
| `/kick` | Kick Members              |
| `/mute` | Timeout Members           |
| `/warn` | Manage Guild ("disabled") |

The `/warn` command is attached to Manage Guild by default like all other commands - you will want to give this command to certain roles as desired. This can be accomplished within Discord's Integrations settings (Desktop/Web only).

![SonoranBot - Manage Integration](/files/qgSD8A0zNAKe6xhDvhFQ)

<img src="/files/a44vleTDPMjHYY1m4IF7" alt="SonoranBot - Warn Permission" width="563">

Managing integration permissions is outside the scope of this guide, but Discord [has a guide](https://support.discord.com/hc/en-us/articles/4644915651095-Command-Permissions) of their own to walk you through the process. Chances are, you've already done this if you're using the CAD/CMS integrations.

## Usage Examples

When a command is used, a logging entry will be created depending on the action.

### Ban/Unban

![SonoranBot - /Ban Command](/files/OuXV2J7IXMlLANpYlBQY) ![SonoranBot - Ban Message](/files/TV7O67ksJ05lNVlfuJg1)

***

### Kick

![SonoranBot - /Kick Command](/files/4mXaiFOwYAMNYlzKg1cX) ![SonoranBot - Kick Message](/files/XObunWlTdI6NNN03ckeE)

***

### Mute/Unmute

![SonoranBot - /Mute Command](/files/dQ1go9BmuWs9dslClij4) ![SonoranBot - /Unmute Command](/files/rpNfBOfGmkqDAahjPBtd)

***

### Warn

![SonoranBot - /Warn Command](/files/QBtTI6KqyqHTt7mcvnzG) ![SonoranBot - /Warn Message](/files/U5dCOouQ7bfl59hNaPTZ)


---

# 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://docs.sonoransoftware.com/bot/tutorials/usage/moderation.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.
