# AutoMod

The `/automod` or `-automod` command allows server administrators to customize Discord's built-in moderation system, providing an additional layer of control over the content in your server. This feature lets you configure automated rules to detect flagged words, keywords, spam, links, mentions, and more.

{% hint style="danger" %}
You need the **ManageGuild** permission to use the `/automod` command.
{% endhint %}

## How to Use the Command

1. **Trigger the Command**\
   You can use the command with either the **slash** or **prefix**:
   * `/automod`
   * `-automod`
2. **Access Advanced AutoMod Settings**\
   After triggering the command, select the **Advanced AutoMod** option from the available settings. This will open the AutoMod configuration menu.
3. **Add or Remove Rules**\
   You can easily add or remove specific rules based on your server’s needs.
   * **Add Rule**\
     Click on the **Add** button, and you will be presented with several rule options to choose from:
     * **Flagged Words Rule**: Automatically flag messages containing inappropriate or unwanted words.
     * **Keyword Rule**: Flag messages containing specific keywords that you define.
     * **Spam Rule**: Detect and act on repeated messages to prevent spam.
     * **Links Rule**: Block or flag messages containing links.
     * **Mentions Rule**: Detect excessive mentions, preventing spammy behavior.
   * **Remove Rule**\
     Click on the **Remove** button, then select the rule you want to delete. This will disable the selected rule from being applied in your server.

## Permissions Needed

To use the `/automod` command, ensure that you have the **ManageGuild** permission in your server.

***

For further assistance, refer to the bot's help menu or [contact our support server](https://discord.gg/cGNFnsXpwZ).


---

# Agent Instructions: 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:

```
GET https://docs.airwavy.xyz/arabic/nzrh-aamh/awamr/mdyr/automod.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
