> ## 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.

# Antiraid

> Respond to suspicious joins, new accounts, and raid activity.

## Protection modules

Antiraid supports new-account checks, missing-avatar checks, mass joins, webhook creation, and emoji deletion. Review the config before enabling each module.

## Thresholds and punishments

Use on or off to toggle a module. Massjoin accepts `--threshold`, `--do`, `--lock`, and `--punish`. Available punishment values are ban and kick; other flags vary by module.

<Warning>
  Choose thresholds for normal join activity in your community. A strict rule can affect legitimate members.
</Warning>

```text theme={null}
,antiraid config
,antiraid massjoin on --threshold 5 --do kick --lock true --punish true
```

## Whitelist and raid state

The whitelist command supports a one-time member exemption and a view mode. The state command ends the active raid state.

```text theme={null}
,antiraid whitelist view
,antiraid state
```

## 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=",antiraid" icon="terminal">
    Configure protection against potential raids.

    ### antiraid config

    View server antiraid configuration.

    ```text Prefix syntax theme={null}
    ,antiraid config
    ```

    ### antiraid state

    Turn off the server's active raid state.

    ```text Prefix syntax theme={null}
    ,antiraid state
    ```

    ### antiraid whitelist

    Create a one-time whitelist or use view.

    ```text Prefix syntax theme={null}
    ,antiraid whitelist <member>
    ```

    | Parameter | Required | Description |
    | - | - | - |
    | `member` | Yes | User ID, mention, or view |

    ### antiraid newaccounts

    Punish newly registered accounts.

    ```text Prefix syntax theme={null}
    ,antiraid newaccounts <setting> [flags]
    ```

    | Parameter | Required | Description |
    | - | - | - |
    | `setting` | Yes | Turn this module on or off Choices: `on`, `off`. |
    | `flags` | No | Module flags, such as `--threshold` 5 `--do` ban |

    ### antiraid avatar

    Punish accounts without a profile picture.

    ```text Prefix syntax theme={null}
    ,antiraid avatar <setting> [flags]
    ```

    | Parameter | Required | Description |
    | - | - | - |
    | `setting` | Yes | Turn this module on or off Choices: `on`, `off`. |
    | `flags` | No | Module flags, such as `--threshold` 5 `--do` ban |

    ### antiraid massjoin

    Protect the server against mass bot raids.

    ```text Prefix syntax theme={null}
    ,antiraid massjoin <setting> [flags]
    ```

    | Parameter | Required | Description |
    | - | - | - |
    | `setting` | Yes | Turn this module on or off Choices: `on`, `off`. |
    | `flags` | No | Module flags, such as `--threshold` 5 `--do` ban |

    ### antiraid webhook

    Punish mass webhook creation.

    ```text Prefix syntax theme={null}
    ,antiraid webhook <setting> [flags]
    ```

    | Parameter | Required | Description |
    | - | - | - |
    | `setting` | Yes | Turn this module on or off Choices: `on`, `off`. |
    | `flags` | No | Module flags, such as `--threshold` 5 `--do` ban |

    ### antiraid emoji

    Punish mass emoji deletion.

    ```text Prefix syntax theme={null}
    ,antiraid emoji <setting> [flags]
    ```

    | Parameter | Required | Description |
    | - | - | - |
    | `setting` | Yes | Turn this module on or off Choices: `on`, `off`. |
    | `flags` | No | Module flags, such as `--threshold` 5 `--do` ban |
  </Accordion>
</AccordionGroup>


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