# 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](https://986342217-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FgJnyZgUQPWpA5p9njAAR%2Fuploads%2Fgit-blob-61b53afdf0797394a8f8c915eaa3f9a80aca7a2a%2Fbot_discordmanageintegration.png?alt=media)

![SonoranBot - Warn Permission](https://986342217-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FgJnyZgUQPWpA5p9njAAR%2Fuploads%2Fgit-blob-4299e53487a6ff042e89d58cd5947a5e30d48ad5%2Fbot_discordintegrationsettings.png?alt=media)

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](https://986342217-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FgJnyZgUQPWpA5p9njAAR%2Fuploads%2Fgit-blob-75eaaee822ced955fa75b371c52847548284fee2%2Fbot_bancommand.png?alt=media) ![SonoranBot - Ban Message](https://986342217-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FgJnyZgUQPWpA5p9njAAR%2Fuploads%2Fgit-blob-d8d154befca2e100bfaaa94208911531614292b4%2Fbot_banmessage.png?alt=media)

***

### Kick

![SonoranBot - /Kick Command](https://986342217-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FgJnyZgUQPWpA5p9njAAR%2Fuploads%2Fgit-blob-0b53f7dddca427b7975045a221f4b4c3d3e4d4a0%2Fbot_kick.png?alt=media) ![SonoranBot - Kick Message](https://986342217-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FgJnyZgUQPWpA5p9njAAR%2Fuploads%2Fgit-blob-1e5cce776a99234811b0227691eb54f5838b6e04%2Fbot_kickedlog.png?alt=media)

***

### Mute/Unmute

![SonoranBot - /Mute Command](https://986342217-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FgJnyZgUQPWpA5p9njAAR%2Fuploads%2Fgit-blob-da19ad1d4a4d5c89aa696564b18c5cef481a18cd%2Fbot_mute.png?alt=media) ![SonoranBot - /Unmute Command](https://986342217-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FgJnyZgUQPWpA5p9njAAR%2Fuploads%2Fgit-blob-4f098a9e62c5c2659ff2527c646052d00bc96862%2Fbot_unmute.png?alt=media)

***

### Warn

![SonoranBot - /Warn Command](https://986342217-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FgJnyZgUQPWpA5p9njAAR%2Fuploads%2Fgit-blob-28ce43d73811a3f8a31af352a9397ea89db39df7%2Fbot_warn.png?alt=media) ![SonoranBot - /Warn Message](https://986342217-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FgJnyZgUQPWpA5p9njAAR%2Fuploads%2Fgit-blob-10ee3e206fa917611fe27bb03a6fe0df531f067e%2Fbot_warnlog.png?alt=media)
