> For the complete documentation index, see [llms.txt](https://docs.mochi.bot/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.mochi.bot/safety-and-moderation/moderation-overview.md). Agents can also search and read this documentation through its [MCP server](https://docs.mochi.bot/~gitbook/mcp).

# Moderation & Safety

Keep your server safe and friendly without it taking over your life.

Every great community needs a little looking after! 🌷

Mochi has a full set of moderation tools. Some catch spam and unkind words for you automatically, and others help your moderators stay calm and fair when a real person needs to step in. You don't need all of them on day one. Start with the basics on this page, then add more as your server grows.

***

## <mark style="color:$primary;">What Mochi can do</mark>

Mochi's moderation tools come in two flavors: things that happen **automatically**, and things your **moderators** do.

### 🤖 Automatic

* [**Auto Moderation**](https://docs.mochi.bot/safety-and-moderation/auto-moderation.md): eight filters that catch caps, emoji spam, invites, links, mass mentions, bad language, spam and unreadable text
* [**Blocked Words**](https://docs.mochi.bot/safety-and-moderation/blocked-words.md): your own list of words and phrases that should never be posted
* [**Warnings & Moderation Actions**](https://docs.mochi.bot/safety-and-moderation/warnings-and-actions.md): automatic timeouts, kicks or bans once someone collects too many warnings
* [**Restricted Channels**](https://docs.mochi.bot/safety-and-moderation/restricted-channels.md): channels that only allow commands, images, videos or a mix
* [**Auto Clear**](https://docs.mochi.bot/safety-and-moderation/auto-clear.md): scheduled clean-ups that empty a channel for you

### 🧑‍⚖️ For your moderators

* [**Moderation Commands**](https://docs.mochi.bot/safety-and-moderation/moderation-commands.md): ban, kick, warn, purge, look up members and manage roles
* [**Event Logs**](https://docs.mochi.bot/server-setup/event-logs.md): a record of what happens in your server, like deleted messages and role changes

***

## 🔐 <mark style="color:$primary;">Permissions Mochi needs</mark>

| Where                      | Permissions                                                                                                         |
| -------------------------- | ------------------------------------------------------------------------------------------------------------------- |
| Your Log Channel           | **View Channel** · **Send Messages** · **Embed Links**                                                              |
| Channels Mochi moderates   | **View Channel** · **Read Message History** · **Manage Messages**                                                   |
| Server-wide (Mochi's role) | **Kick Members** · **Ban Members** · **Timeout Members** · **Manage Server** (for filters built on Discord AutoMod) |

{% hint style="info" %}
💡 **Troubleshooting tip:** Something not working? Don't panic, it's usually just a permission! Check the channel itself (⚙️ **Edit Channel → Permissions**) and Mochi's role in **Server Settings → Roles**, because a channel setting can block something her role allows. See [Roles & Permissions](https://docs.mochi.bot/getting-started/roles-and-permissions.md).
{% endhint %}

***

## <mark style="color:$primary;">How to set it up</mark>

Before switching on any filters, tell Mochi **who your moderators are** and **where to keep records**. Both live at the bottom of the **Moderation** page.

{% stepper %}
{% step %}
Open the [**Mochi Dashboard**](https://mochi.bot) and choose your server.
{% endstep %}

{% step %}
In the sidebar, open **Server Management** and click **Moderation**.
{% endstep %}

{% step %}
Scroll down to **Moderator Roles** and choose the roles your moderation team has.
{% endstep %}

{% step %}
Under **Log Channel**, choose a private staff channel for warnings and moderation events.
{% endstep %}
{% endstepper %}

All done! Your moderators can now use Mochi's moderation commands, and every warning has a home. 🛡️

<figure><img src="https://2165914094-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNXPRKMDw2wWy4K61hBPv%2Fuploads%2Fgit-blob-d11e1ac737fdd05d8bddbd1351e4d5daf6e4df84%2Fsm-01.png?alt=media" alt="Moderation → scroll to Moderator Roles → add @Moderator → choose a Log Channel."><figcaption><p>Moderation → scroll to Moderator Roles → add @Moderator → choose a Log Channel.</p></figcaption></figure>

Prefer Discord? `/mod setup` lets you choose moderator roles and a log channel without opening the dashboard.

***

## <mark style="color:$primary;">Commands</mark>

### `/mod setup`

Opens a pop-up window where you choose your moderator roles and log channel.

### `/mod add`

Makes a member a moderator by giving them your moderator role.

> Example: `/mod add member:@Sakura`

### `/mod remove`

Takes the moderator role away from a member.

> Example: `/mod remove member:@Sakura`

### `/mod list`

Shows everyone who's currently a moderator.

***

## <mark style="color:$primary;">Settings explained</mark>

### Moderator Roles

*Members with these roles can access and use moderation commands.*

Choose one or more roles. Anyone with at least one of them can use Mochi's moderation commands, like `/warnings add`, `/kick` and `/purge`.

{% hint style="info" %}
💡 **Moderators vs Mochi Masters:** Moderator roles can *use* moderation tools. **Mochi Masters** (in [Settings](https://docs.mochi.bot/server-setup/settings.md#mochi-masters)) can change *everything* about Mochi. Most mod teams only need moderator roles.
{% endhint %}

### Log Channel

*Stores warnings and moderation events.*

The channel where Mochi posts a running summary of what's being logged in your server, so your team always has a shared history to look back on. For example:

* Members joining or leaving the server
* Members joining or leaving voice channels
* Members receiving a role

You choose exactly which events are logged on the [Event Logs](https://docs.mochi.bot/server-setup/event-logs.md) page.

{% hint style="warning" %}
**Keep your log channel private to staff.** Logs can include member names, reasons and removed messages.
{% endhint %}

***

## 🌱 <mark style="color:$primary;">Best practices</mark>

* **Set your Moderator Roles and Log Channel first**, before turning on filters.
* **Start with a few filters**, like Anti Spam and Anti Invites, and add more if you need them.
* **Keep automatic responses gentle**: a friendly message and a short timeout go a long way.
* **Write your rules down** in a rules channel, so members know what to expect.
* **Read** [**Moderation Best Practices**](https://docs.mochi.bot/safety-and-moderation/moderation-best-practices.md) for tips on balancing Mochi's automation with human judgment.

***

## 🛠️ <mark style="color:$primary;">Troubleshooting</mark>

<details>

<summary>A moderator can't use moderation commands.</summary>

* Check they have one of your **Moderator Roles**.
* Check the command isn't limited on the dashboard's [Commands](https://docs.mochi.bot/server-setup/commands.md) page.

</details>

<details>

<summary>Nothing shows up in my Log Channel.</summary>

* Check a **Log Channel** is chosen at the bottom of the **Moderation** page.
* Check Mochi can **View Channel**, **Send Messages** and **Embed Links** there.

</details>

<details>

<summary>Mochi can't time out, kick or ban someone.</summary>

Mochi's role needs to sit **above** that member's highest role. See [Roles & Permissions](https://docs.mochi.bot/getting-started/roles-and-permissions.md).

</details>

{% columns %}
{% column width="33.33333333333333%" %}

<figure><img src="https://2165914094-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNXPRKMDw2wWy4K61hBPv%2Fuploads%2Fgit-blob-fa50d1e36c23a82929fe13087b832029ac007239%2Fcta-support-kagami-square.jpg?alt=media" alt="Kagami, ready to help" width="200"><figcaption></figcaption></figure>
{% endcolumn %}

{% column width="66.66666666666667%" %}
**Need some help? 🩷**

Pop into the Mochi Support Server and we'll happily take a look with you.

<a href="https://discord.gg/krsFJDS2hA" class="button primary" data-icon="discord">Join the Support Server</a>
{% endcolumn %}
{% endcolumns %}

***

## ✨ <mark style="color:$primary;">Why it matters</mark>

When Mochi handles the routine stuff and your moderators have clear tools and records, your team can spend its time on the people who need a real conversation.

Mochi takes care of the obvious stuff, so you can focus on your people! 🌸
