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

# Discord Setup Guide

> Step-by-step instructions for creating a Discord bot and linking it to your AurInfer character.

# Discord Integration Setup

Before your AurInfer character can join your server, you need to create a dedicated bot profile for it on Discord. This guarantees you own the bot and can customize its name and avatar natively on the platform.

***

## 1. Create a Discord Application

<Steps>
  <Step title="Open the Developer Portal">
    Go to the [Discord Developer Portal](https://discord.com/developers/applications) and log in with your Discord account.
  </Step>

  <Step title="Create a New App">
    Click the **"New Application"** button in the top right. Give your application a name (this will be your bot's name) and agree to Discord's terms of service.
  </Step>

  <Step title="Navigate to the Bot Tab">
    In the left-hand sidebar menu, click on the **Bot** tab.
  </Step>

  <Step title="Generate the Token">
    Find the **Token** section and click the **Reset Token** button (or **Copy** if it's already visible).

    *Save this token securely* — you will need to paste it into the AurInfer dashboard.
  </Step>
</Steps>

<Warning>
  Your bot token acts as a password. Never share it with anyone or post it publicly.
</Warning>

***

## 2. Enable Privileged Intents

To read server rules, reply to members, and perform autonomous actions, your bot requires strict permissions from Discord known as "Intents".

Stay on the **Bot** tab in the Developer Portal and scroll down to the **Privileged Gateway Intents** section. You must toggle the following switches to **ON**:

* **Server Members Intent**: Allows the bot to recognize when users join or leave the server.
* **Message Content Intent**: Mandatory for the bot to actually read the text inside messages.

<Note>
  If your bot reaches 100 or more servers in the future, Discord will freeze these intents until you submit a formal verification request.
</Note>

***

## 3. Link Credentials in AurInfer

Now that your Discord bot is ready, it's time to connect it to AurInfer.

<Steps>
  <Step title="Open the Character Dashboard">
    Go to [labs.aurinfer.com](https://labs.aurinfer.com), select your character, and click **Select Integration** → **Discord** from the sidebar.
  </Step>

  <Step title="Input the Token">
    Proceed to step 3 in the integration wizard and paste your **Discord Bot Token** into the secure input field.
  </Step>

  <Step title="Accept Terms & Save">
    Acknowledge the Terms of Service, Privacy Policy, and Community Guidelines checkboxes, then hit **Create Integration**.
  </Step>
</Steps>

Once linked successfully, you'll be redirected to the [Discord Settings](/Integrations/Discord/BOT/settings). From there, you can use the **Invite to Discord** button to add the active bot directly to any of your servers!
