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

# Antiraid

<Card title="Module: Antiraid" icon="person-to-door" horizontal="True">
  Configure your server's antiraid protections
</Card>

## Antiraid System Configuration

### What does it do?

<Tabs />

The antiraid can mitigate anybody planning to spam your server with **alternate accounts**, or wishing to engage in a **raid**. Not only can you set the **minimum** account age for your server, but you can block default profile picture accounts and more. Below, we will go over how to do this.

<Tip>
  Before **configuring** the antiraid, execute `,antiraid on`
</Tip>

### Commands

<Tabs />

<AccordionGroup>
  <Accordion title="Setting Punishment" icon="hammer">
    All of the **antiraid** will follow the set punishment for its actions

    <CodeGroup>
      ```javascript Syntax theme={null}
      ,antiraid punishment (kick/ban)
      ```

      ```javascript Example theme={null}
      ,antiraid punishment ban
      ```
    </CodeGroup>

    <br />

    <Frame>
      <img src="https://mintcdn.com/kyos-c60486ad/I5vQIDwxulOEOE4L/images/antiraid/antiraid-ban.png?fit=max&auto=format&n=I5vQIDwxulOEOE4L&q=85&s=3cf7474eaf85422f4451e057a31daf3c" width="334" height="118" data-path="images/antiraid/antiraid-ban.png" />
    </Frame>
  </Accordion>

  <Accordion title="Viewing Configuration" icon="gear">
    To view the server's **antiraid settings**, use the following command

    <CodeGroup>
      ```javascript Syntax theme={null}
      ,antiraid settings
      ```
    </CodeGroup>

    <br />

    <Frame>
      <img src="https://mintcdn.com/kyos-c60486ad/I5vQIDwxulOEOE4L/images/antiraid/antiraid-cfg.png?fit=max&auto=format&n=I5vQIDwxulOEOE4L&q=85&s=fa80a77137357eb6e6c1707f6872f4b8" width="438" height="240" data-path="images/antiraid/antiraid-cfg.png" />
    </Frame>
  </Accordion>

  <Accordion title="Mass Join Prevention" icon="door-open">
    To prevent mass joining, use the following command

    <CodeGroup>
      ```javascript Syntax theme={null}
      ,antiraid massjoin (on/off) (rate)
      ```

      ```javascript Example theme={null}
      ,antiraid massjoin on 3
      ```
    </CodeGroup>

    <br />

    <Frame>
      <img src="https://mintcdn.com/kyos-c60486ad/I5vQIDwxulOEOE4L/images/antiraid/antiraid-mj.png?fit=max&auto=format&n=I5vQIDwxulOEOE4L&q=85&s=132aefc68213f9073d558fadef4168c0" width="472" height="124" data-path="images/antiraid/antiraid-mj.png" />
    </Frame>
  </Accordion>

  <Accordion title="Minimum Account Age" icon="link">
    To set a **minimum account age**, use the following command

    <Warning>
      To exempt a user, use `,antiraid ignore (user)`
    </Warning>

    <CodeGroup>
      ```javascript Syntax theme={null}
      ,antiraid accountage (days)
      ```

      ```javascript Example theme={null}
      ,antiraid accountage 3
      ```
    </CodeGroup>

    <br />

    <Frame>
      <img src="https://mintcdn.com/kyos-c60486ad/I5vQIDwxulOEOE4L/images/antiraid/antiraid-age.png?fit=max&auto=format&n=I5vQIDwxulOEOE4L&q=85&s=cba4f3e0dfcec6213d301f4c93984e77" width="410" height="124" data-path="images/antiraid/antiraid-age.png" />
    </Frame>
  </Accordion>

  <Accordion title="Eradicating Threats" icon="triangle-exclamation">
    To fully eradicate a threat, you have to option to ban **all members** who joined your server in a specified timeframe

    <Warning>This will ban **ALL** users who joined in the timeframe, even if they're antiraid ignored.</Warning>

    <CodeGroup>
      ```javascript Syntax theme={null}
      ,antiraid massban (minutes)
      ```

      ```javascript Example theme={null}
      ,antiraid massban 30m
      ```
    </CodeGroup>

    <br />
  </Accordion>

  <Accordion title="Exempting Users" icon="person">
    To **ignore** users from the antiraid, use the following command

    <Tip>
      To **unwhitelist** a user, simply re-run the command
    </Tip>

    <CodeGroup>
      ```javascript Syntax theme={null}
      ,antiraid ignore (user)
      ```

      ```javascript Example theme={null}
      ,antiraid ignore 1065596802235109426
      ```
    </CodeGroup>

    <br />

    <Frame>
      <img src="https://mintcdn.com/kyos-c60486ad/I5vQIDwxulOEOE4L/images/antiraid/antiraid-ignore.png?fit=max&auto=format&n=I5vQIDwxulOEOE4L&q=85&s=60245bcad9c37477884d6ebb3ee6a367" width="472" height="118" data-path="images/antiraid/antiraid-ignore.png" />
    </Frame>
  </Accordion>

  <Accordion title="Disallowing Default Profile Pictures" icon="image">
    To **disallow** users with **default profile pictures** joining your server, use the following command

    <CodeGroup>
      ```javascript Syntax theme={null}
      ,antiraid pfp (on/off)
      ```

      ```javascript Example theme={null}
      ,antiraid pfp on
      ```
    </CodeGroup>

    <br />

    <Frame>
      <img src="https://mintcdn.com/kyos-c60486ad/I5vQIDwxulOEOE4L/images/antiraid/antiraid-pfp.png?fit=max&auto=format&n=I5vQIDwxulOEOE4L&q=85&s=01c3841246e0caa58b91e8f40c0d4d19" width="392" height="120" data-path="images/antiraid/antiraid-pfp.png" />
    </Frame>
  </Accordion>
</AccordionGroup>

## Related Commands

<Tabs />

<AccordionGroup>
  <Accordion title="Viewing the whitelisted users">
    `,antiraid whitelisted`
  </Accordion>
</AccordionGroup>
