# Setting Up a Discord BOT

{% hint style="danger" %}
Be sure to follow the correct procedure when setting Gateway Intents and Permissions.
{% endhint %}

### Steps

1. Go to the official Discord Developer Portal - <https://discord.com/developers/applications>
2. Click on the <mark style="color:blue;">`New Application`</mark> and type a name for the BOT

<figure><img src="https://799349702-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FrczaiIR8LCIvnID1U1Ty%2Fuploads%2FojAZUPHcjmgqjJrOuqMW%2FvwAC.png?alt=media&#x26;token=38b573f6-14f7-4853-9507-09ecbeba0449" alt=""><figcaption></figcaption></figure>

3. Next, go to the <mark style="color:blue;">`Bot`</mark> page and in the Privileged Gateway Intents allow `Server members intent` and `Message content intent`

<figure><img src="https://799349702-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FrczaiIR8LCIvnID1U1Ty%2Fuploads%2FRZoSOcV1yBrj8iTJcNzp%2FPhnY.png?alt=media&#x26;token=76b7b7f5-7167-4a4b-92a8-c09b1b1fc72e" alt=""><figcaption></figcaption></figure>

4. Next, go to the <mark style="color:blue;">`OAuth2`</mark> page&#x20;

<figure><img src="https://799349702-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FrczaiIR8LCIvnID1U1Ty%2Fuploads%2F29rZLgOMe0VsDhplHgRZ%2FYFpi.png?alt=media&#x26;token=374152e8-44ee-4139-ba6b-696e5be6d449" alt=""><figcaption></figcaption></figure>

5. And then go to the OAuth2 URL Generator section and check `applications.commands` and `bot` in Scopes and in Bot permissions check `Administrator`

<div align="center" data-full-width="false"><figure><img src="https://799349702-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FrczaiIR8LCIvnID1U1Ty%2Fuploads%2FccSU8GUmwKsl317HcqOY%2F2IQWRax.png?alt=media&#x26;token=a7345746-29e9-494f-ac8f-c9aa65e2e375" alt=""><figcaption></figcaption></figure></div>

<figure><img src="https://799349702-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FrczaiIR8LCIvnID1U1Ty%2Fuploads%2FN7rXHqjYlawgGIV3doR2%2FhFvp.png?alt=media&#x26;token=0079f077-4996-4ad8-906a-03d96e1975e2" alt=""><figcaption></figcaption></figure>

6. Then just copy the Generated URL and paste it into your browser to invite the bot to your Discord server.
