# Setup of a Discord App + Setup of the Discord SDK (In order to use Core, Activity, User, Overlay)

{% stepper %}
{% step %}
Go to the Discord Developer portal and click on “Applications” or follow this link: [https://discord.com/developers/applications/](https://discord.com/developers/applications/)


{% endstep %}

{% step %}
After you logged in with your Discord account you are able to create a new application. For that click on “New Application”

<figure><img src="https://3810407346-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1LwBPTa0iiIErXtRt7Bg%2Fuploads%2FgM9Hbd5P9aNGkQamkpTP%2Fimage.png?alt=media&#x26;token=c43c6011-b02c-4eb7-94f2-4d0e7c45828b" alt=""><figcaption></figcaption></figure>

<figure><img src="https://3810407346-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1LwBPTa0iiIErXtRt7Bg%2Fuploads%2FU8EVuksEg2eQ3OhZwpI0%2Fimage.png?alt=media&#x26;token=7efb334d-eeb4-4dc0-8845-427f9d7699dc" alt=""><figcaption></figcaption></figure>
{% endstep %}

{% step %}
In your application under the “General Information” tab you can fill out information like the name and the app icon. This will later show when you use Rich Presence / Activity functionality

<figure><img src="https://3810407346-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1LwBPTa0iiIErXtRt7Bg%2Fuploads%2FFzxQuc92qQHBk6Ss3B8s%2Fimage.png?alt=media&#x26;token=7e2da9ce-4b31-4189-8b0b-2ad361b8fcb3" alt=""><figcaption></figcaption></figure>
{% endstep %}

{% step %}
Also under the “General Information” tab you can copy your application id. This is needed as a input for the [Initialize Discord](all-nodes/initialize-discord) node. <mark style="color:red;">**Do not share this code with others.**</mark>

<figure><img src="https://3810407346-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1LwBPTa0iiIErXtRt7Bg%2Fuploads%2FIR7Gh18i80K7WpzhxUIW%2Fimage.png?alt=media&#x26;token=b4f1051e-55f5-4526-8f0c-6459ebea5d25" alt=""><figcaption></figcaption></figure>
{% endstep %}

{% step %}
Go to the “OAuth2” tab and click on “Add Redirect”. Then copy the following URL into the text box that appeared. Make sure to click on “Save Changes” afterwards.

```
http://127.0.0.1
```

<figure><img src="https://3810407346-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1LwBPTa0iiIErXtRt7Bg%2Fuploads%2FDLLPOWMMOLcCofMmcI0K%2Fimage.png?alt=media&#x26;token=486669a4-2741-4e25-a6a2-7a951f4136f6" alt=""><figcaption></figcaption></figure>

<figure><img src="https://3810407346-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1LwBPTa0iiIErXtRt7Bg%2Fuploads%2F4hi05dofcxgLmEu9j9Ly%2Fimage.png?alt=media&#x26;token=633e7776-547f-4e5e-8ae4-be386b3c7afe" alt=""><figcaption></figcaption></figure>
{% endstep %}

{% step %}
### Adding the Discord SDK files

{% hint style="warning" %}
To comply with DiscordSDK’s terms of service I cannot include the files for it.
{% endhint %}

{% tabs %}
{% tab title="Fast Way" %}
Instantly download the file you need here: [Download](https://drive.google.com/uc?export=download\&id=1WF2QdoYyhRZusob8Zyo2ksaCHtj4xBsY)
{% endtab %}

{% tab title="Slow Way" %}
1. Download the file you need yourself here [https://discord.com/developers/docs/developer-tools/game-sdk](https://discord.com/developers/docs/developer-tools/game-sdk)
2. You need to download v2.5.6.
3. After you download this .zip file you need to unpack it and go to “discord\_game\_sdk/lib/x86\_64”. In here you need to find “discord\_Game\_sdk.dll”.

<figure><img src="https://3810407346-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1LwBPTa0iiIErXtRt7Bg%2Fuploads%2FsWD16BRViy74Va1XACQu%2Fimage.png?alt=media&#x26;token=4acad008-4893-4552-99a3-045fa39bb45c" alt=""><figcaption></figcaption></figure>
{% endtab %}
{% endtabs %}

**After you got the needed .dll file:**

* Copy the file to the Win64 binaries folder which is located under “PATH\_TO\_YOUR\_PROJECT/Binaries/Win64/”.
* You also need to add it every time you package your project under “PATH\_TO\_YOUR\_PROJECT/YOU\_PROJECT\_NAME/Binaries/Win64/”
{% endstep %}

{% step %}
### Restart the engine


{% endstep %}

{% step %}
That’s it. You are all set to use the Discord SDK functions.

{% hint style="warning" %}
Make sure to call the [Initialize Discord](all-nodes/initialize-discord) node at the beginning of your game. Then you can use all the other functions out of the **Core, Activity, User & Overlay categories.**
{% endhint %}
{% endstep %}

{% step %}
### 🙏 Final Words

Are you enjoying this plugin? Then don’t forget to [leave a review to support the creator!](https://www.fab.com/listings/96f9d2fc-dcef-40b1-b237-0d2ca55645ea)
{% endstep %}
{% endstepper %}
