# Creating your first bot

**This page contains instructions on how to set up a discord bot application.**\
**If you already have a discord bot on your account, you can skip this and proceed to :**

{% content-ref url="installation" %}
[installation](https://disclosure.gitbook.io/disclosure-bot/setup/installation)
{% endcontent-ref %}

### Setting up a Bot application and Inviting your Bot[​](https://brayanbot.dev/docs/setup/pre-installation#setting-up-a-bot-application) <a href="#setting-up-a-bot-application" id="setting-up-a-bot-application"></a>

#### Creating your first Bot Account:[​](https://brayanbot.dev/docs/setup/pre-installation#creating-your-bot-account) <a href="#creating-your-bot-account" id="creating-your-bot-account"></a>

1. Open the [**Discord Developer Portal**](https://discord.com/developers/applications/me).
2. Click on the **\[New Application]** button.\
   ![](https://2025895628-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fuib9u3HY01Zmyrowj1zi%2Fuploads%2FpxPZTGxdcws1EEv6ikaw%2Fimage.png?alt=media\&token=0e7f8731-1edb-4de9-aa27-430c58ebe83e)
3. Enter a name for your application.\
   ![](https://2025895628-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fuib9u3HY01Zmyrowj1zi%2Fuploads%2FHaB6QtgtBsYPjwJn6nZb%2Fimage.png?alt=media\&token=0096fa08-1d62-416b-a93c-8425573ab652)
4. Click the **\[Create]** button.
5. **Switch** to the Bot tab **in** the left **pane.**
6. Click the **\[Add Bot]** button on the right **and** confirm **Yes.**

#### Adding the Bot to your Server: <a href="#adding-the-bot-to-your-server" id="adding-the-bot-to-your-server"></a>

1. **Switch** to the **OAuth2** tab in the left **pane** then select **URL Generator.**\
   ![](https://2025895628-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fuib9u3HY01Zmyrowj1zi%2Fuploads%2FgEwuTL33U0pp73d80WaO%2Fimage.png?alt=media\&token=5242110b-06ca-47e2-861e-f53c036de7bb)
2. Then check the following options **to gain full functionality** for your bot:\
   ![](https://2025895628-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fuib9u3HY01Zmyrowj1zi%2Fuploads%2F57fUyotL7G1Ye4fPpDdh%2Fimage.png?alt=media\&token=69029ec0-f1c0-455d-99ae-44282a1d6e71)
3. Then **click** the **\[Copy]** button to get the link and paste it into your browser's URL.
4. **Select** the server you want to add and click **\[Authorize].** \\

{% hint style="info" %}
**NOTE:**

**Adding a bot to** a server **requires server administration privileges on the server/guild.**
{% endhint %}
