> ## Documentation Index
> Fetch the complete documentation index at: https://docs.semetary.xyz/llms.txt
> Use this file to discover all available pages before exploring further.

# Automod

> Create and manage Discord AutoMod rules from Semetary.

## Open the panel

Use the interactive panel to manage existing rules and presets. Semetary needs the Discord permissions required to manage AutoMod.

```text theme={null}
,automod panel
```

## Presets

The code includes invite-link blocking, mention spam, common scam phrases, and Discord keyword presets. These rules are separate from antinuke and antiraid.

## Manage rules

List rules, then enable, disable, or delete one by its ID. Deleting removes the rule rather than pausing it.

```text theme={null}
,automod list
,automod create invites
```

## Command reference

Examples use the default comma prefix. Required inputs use angle brackets; optional inputs use square brackets. Each command notes whether it is also registered in Discord's slash menu.

<AccordionGroup>
  <Accordion title=",automod" icon="terminal">
    Manage Discord AutoMod rules.

    <Note>This command is also registered in Discord’s slash menu. Select the command there to fill in named inputs.</Note>

    ### automod panel

    Open the interactive AutoMod panel.

    ```text Prefix syntax theme={null}
    ,automod panel
    ```

    ### automod list

    List this server's AutoMod rules.

    ```text Prefix syntax theme={null}
    ,automod list
    ```

    ### automod create

    Create an AutoMod preset.

    ```text Prefix syntax theme={null}
    ,automod create <preset>
    ```

    | Parameter | Required | Description |
    | - | - | - |
    | `preset` | Yes | The AutoMod preset to create. Choices: `invites`, `mention_spam`, `scams`, `keyword_presets`. |

    ### automod delete

    Delete an AutoMod rule.

    ```text Prefix syntax theme={null}
    ,automod delete <rule_id>
    ```

    | Parameter | Required | Description |
    | - | - | - |
    | `rule_id` | Yes | The AutoMod rule ID. |

    ### automod enable

    Enable an AutoMod rule.

    ```text Prefix syntax theme={null}
    ,automod enable <rule_id>
    ```

    | Parameter | Required | Description |
    | - | - | - |
    | `rule_id` | Yes | The AutoMod rule ID. |

    ### automod disable

    Disable an AutoMod rule.

    ```text Prefix syntax theme={null}
    ,automod disable <rule_id>
    ```

    | Parameter | Required | Description |
    | - | - | - |
    | `rule_id` | Yes | The AutoMod rule ID. |
  </Accordion>
</AccordionGroup>


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.