# Invite Your Bot

First, visit the [Discord Dev Portal](https://discord.com/developers) and head on over to the `OAuth2` tab.

<figure><img src="https://3648012086-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FjY7Ly60Jslfxu9tahTdi%2Fuploads%2FtJOz9mh8m1qJnm44Jocf%2Fimage.png?alt=media&#x26;token=a8577a20-5be5-4149-8a25-6e9ae61a1b9b" alt=""><figcaption><p>OAuth2 Tab</p></figcaption></figure>

Once there, locate the "OAuth2 URL Generator" section and select all necessary scopes. For all Discord Bots, select the `bot` scope and if you have slash commands on your bot, then also select the `applications.commands` scope, if you are unsure if your bot has slash commands or want to implement them in the future, just select it just in case.

<figure><img src="https://3648012086-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FjY7Ly60Jslfxu9tahTdi%2Fuploads%2FfgA90eN8JiH4mS8ShRfP%2Fimage.png?alt=media&#x26;token=b73521b1-6d7f-420a-b4ac-8b7baf2cbec5" alt=""><figcaption><p>OAuth2 URL Generator</p></figcaption></figure>

Once you have selected the scopes, scroll down to the new area available and select your bot's permissions based on what you want it to do. For your bot to be able to do anything, just select the `Administrator` scope.

<figure><img src="https://3648012086-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FjY7Ly60Jslfxu9tahTdi%2Fuploads%2F5EMIqneou0TGnmjl7CIn%2Fimage.png?alt=media&#x26;token=5f50383b-9a15-47a4-91d4-2f2389a75302" alt=""><figcaption><p>Bot Permissions</p></figcaption></figure>

Now we are done, just copy the `GENERATED URL` at the bottom and paste it in a new tab to add your bot to your server and share the link with your friends if you want them to add your bot as well.

<figure><img src="https://3648012086-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FjY7Ly60Jslfxu9tahTdi%2Fuploads%2F8Dik6OmjHNzPqcVpNTDi%2Fimage.png?alt=media&#x26;token=2b757458-d513-47ef-88e5-9153c0697942" alt=""><figcaption><p>Generated URL</p></figcaption></figure>
