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

# Discord Manual

> Boost up your games by using our Discord Bot

<Info>
  **Prerequisites**:

  * AzarineGuard subscription with API Key
  * Invited our official [Discord Bot](https://azguard.my.id/invite-bot) on your server
  * Linked Discord ID on [Central Settings](https://central.azguard.my.id/settings/)
</Info>

## Setup Steps

Follow these steps to configure and run AzarineGuard on your Discord Server.

<Steps>
  <Step title="Run Setup Wizzard">
    <img height="50" src="https://mintcdn.com/azarineguard/6_uHzcdk6u_XoS9Q/images/tutorials/commands_setup.jpg?fit=max&auto=format&n=6_uHzcdk6u_XoS9Q&q=85&s=c39fd800ff2bf6ee64bae749db8b7668" data-path="images/tutorials/commands_setup.jpg" />

    ```bash theme={null}
    /setup
    ```

    Enter your **API Key**, **Manager Role**, and **Primary Color** (Hex Code `#0000FF`).
  </Step>

  <Step title="Send Panel">
    <img height="50" src="https://mintcdn.com/azarineguard/6_uHzcdk6u_XoS9Q/images/tutorials/commands_panel.jpg?fit=max&auto=format&n=6_uHzcdk6u_XoS9Q&q=85&s=63f9a05a027299d6262f1f23ee1a9928" data-path="images/tutorials/commands_panel.jpg" />

    ```md theme={null}
    /panel <folder> <channel> <buyer_role>
    ```

    `channel`: Target Discord Channel <br />
    `folder`: Target Folder Name <br />
    `buyer_role`: Users Whitelisted Role <br />

    Send a panel for users to manage their scripts.
  </Step>
</Steps>

Congratulations, you have successfully integrated AzarineGuard to your Discord Server!

## User Commands

These commands may be used by regular users, setup must be done beforehand.

<AccordionGroup>
  <Accordion icon="server" title="Ping Bot">
    ```bash theme={null}
    /ping
    ```

    Responds with the bot latency, used to check Bot Status.
  </Accordion>

  <Accordion icon="info" title="Help Commands">
    ```bash theme={null}
    /help
    ```

    Responds with commands list (AzarineGuard Documentation).
  </Accordion>

  <Accordion icon="paperclip" title="Get Script">
    ```md theme={null}
    /getscript <script_name>
    ```

    *`script_name`: Target Script Name*<br />
    Responds with script loader with user key.
  </Accordion>

  <Accordion icon="gift" title="Redeem Key">
    ```md theme={null}
    /redeem <key>
    ```

    *`key`: Target Key*<br />
    Redeem a key to their discord account.
  </Accordion>

  <Accordion icon="refresh" title="Reset HWID">
    ```md theme={null}
    /resethwid <folder>
    ```

    *`folder`: Target Folder Name*<br />
    Reset user HWID, only 1x per 24 hour.
  </Accordion>

  <Accordion icon="chart-pie" title="Get Statistics">
    ```md theme={null}
    /getstats <target> <folder>
    ```

    *`target`: Target Discord User / Key*<br />
    *`folder`: Target Folder Name*<br />
    Get user stats, user can only search up their own.
  </Accordion>
</AccordionGroup>

## Manager Commands

These commands may be used by managers, setup must be done beforehand.

<AccordionGroup>
  <Accordion icon="send" title="Send Panel">
    ```md theme={null}
    /panel <folder> <channel> <buyer_role>
    ```

    *`channel`: Target Discord Channel*<br />
    *`folder`: Target Folder Name*<br />
    *`buyer_role`: Users Whitelisted Role*<br />
    Send a panel for users to manage their scripts.
  </Accordion>

  <Accordion icon="chart-pie" title="Get Statistics">
    ```md theme={null}
    /getstats <target> <folder>
    ```

    *`target`: Target Discord User / Key*<br />
    *`folder`: Target Folder Name*<br />
    Get user stats, managers may lookup other users.
  </Accordion>

  <Accordion icon="pen" title="Whitelist User">
    ```md theme={null}
    /whitelist <user> <folder> <days>
    ```

    *`user`: Target Discord User*<br />
    *`folder`: Target Folder Name*<br />
    *`days`: Target Days (-1 for Lifetime)*<br />
    Generate a key under a Discord User for a specific Folder.
  </Accordion>

  <Accordion icon="pen" title="Unwhitelist User">
    ```md theme={null}
    /unwhitelist <user> <folder> <days>
    ```

    *`user`: Target Discord User*<br />
    *`folder`: Target Folder Name*<br />
    Delete a key under a Discord User for a specific Folder.
  </Accordion>

  <Accordion icon="users" title="Whitelist Role">
    ```md theme={null}
    /bulkwhitelist <role> <folder> <days>
    ```

    *`role`: Target Discord Role*<br />
    *`folder`: Target Folder Name*<br />
    *`days`: Target Days (-1 for Lifetime)*
    Generate keys for members of a Discord Role for a Folder.
  </Accordion>

  <Accordion icon="users" title="Unwhitelist Role">
    ```md theme={null}
    /bulkunwhitelist <role> <folder> <days>
    ```

    *`role`: Target Discord Role*<br />
    *`folder`: Target Folder Name*<br />
    Delete keys for members of a Discord Role for a Folder.
  </Accordion>

  <Accordion icon="key" title="Generate Keys">
    ```md theme={null}
    /bulkkey <count> <folder> <days>
    ```

    *`count`: Keys Generation Count*<br />
    *`folder`: Target Folder Name*<br />
    *`days`: Target Days (-1 for Lifetime)*<br />
    Generate keys for a Folder and export it to TXT.
  </Accordion>
</AccordionGroup>

## Troubleshooting

<AccordionGroup>
  <Accordion title="Panel Error: This interaction failed">
    This may be possible due to the Discord Bot being down, check [Status Page](https://status.azguard.my.id/) <br />
    If not, resend your panel through the [command](#send-panel) (for managers only).

    If the issue can't be resolved by yourself, contact [Support](https://discord.azguard.my.id/) immediately!
  </Accordion>

  <Accordion title="Command Error: Stuck on AzarineGuard is thinking">
    This may be possible due to the Discord Bot being down, check [Status Page](https://status.azguard.my.id/)<br />
    If the issue can't be resolved, contact [Support](https://discord.azguard.my.id/) immediately!
  </Accordion>
</AccordionGroup>
