> For the complete documentation index, see [llms.txt](https://mediocraty-itself.gitbook.io/rusttools/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://mediocraty-itself.gitbook.io/rusttools/setting-up-bot/getting-discord-bot-token.md).

# Getting discord bot token

To achive best performance you can add your own discord bot to your discord server to use discord slash commands and get notifications of events.

## - Create bot

[Click here ](https://discord.com/developers/applications) to login onto Discord Developrt Portal as you logged in press "New Aplication"

<figure><img src="https://2714295573-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FH2xPiUNoVsVJGOZJTB7R%2Fuploads%2F0HbDVDWGmlqfzUfM9S1y%2Fimage.png?alt=media&amp;token=a313df45-08a4-4d27-b232-18c6f803de2e" alt=""><figcaption></figcaption></figure>

In window type in name you want your discord bot have\
![](https://2714295573-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FH2xPiUNoVsVJGOZJTB7R%2Fuploads%2FUi0Bc63Er71ClzIbdmJz%2Fimage.png?alt=media\&token=a428a7c5-d11c-4acc-a89e-901ea6f9eae3)

## - Customize your bot

Chane profile picture and bot description if you want to right on this page

<figure><img src="https://2714295573-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FH2xPiUNoVsVJGOZJTB7R%2Fuploads%2FMtUJPOsFoUZ1wDB1w4gk%2Fimage.png?alt=media&amp;token=c61bbd37-b969-4753-943b-6079798e85d4" alt=""><figcaption></figcaption></figure>

## - Turn on discord member intent

Click onto "Bot" section and scroll to Privileged Gateway Intents and turn on "Server Member" and "Message Content"

<figure><img src="https://2714295573-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FH2xPiUNoVsVJGOZJTB7R%2Fuploads%2F3CW9fjm7TYs70NEol6sU%2Fimage.png?alt=media&amp;token=8e9b9da3-362d-43c3-b7b2-8209896b8fcd" alt=""><figcaption></figcaption></figure>

## - Getting discord bot token

Click "Reset Token" and get your discord bot token. Write it down somewhere.

<figure><img src="https://2714295573-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FH2xPiUNoVsVJGOZJTB7R%2Fuploads%2FDAgEwlaLgK9lCoMb4gtf%2Fimage.png?alt=media&amp;token=8851e935-ccaf-4975-b52a-bb5e11fb6373" alt=""><figcaption></figcaption></figure>

## - Adding bot to discord server

Go to the Installation section and turn off User Install

<figure><img src="https://2714295573-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FH2xPiUNoVsVJGOZJTB7R%2Fuploads%2Fx18LF8SA3g7ROIbNDp9T%2Fimage.png?alt=media&amp;token=76398d9e-e387-4a86-90a6-d3926cf90fe7" alt=""><figcaption></figcaption></figure>

Change bot permissions by scrolling down and choosing bot -> administrator

<figure><img src="https://2714295573-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FH2xPiUNoVsVJGOZJTB7R%2Fuploads%2FrWNrAjMElVbWmC5pYZNJ%2Fimage.png?alt=media&amp;token=2a2a9ed3-221c-49c1-920e-1e6c7ef0ec37" alt=""><figcaption></figcaption></figure>

Save changes

<figure><img src="https://2714295573-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FH2xPiUNoVsVJGOZJTB7R%2Fuploads%2Ftmd5ECwsgeVxpZufx5Tg%2Fimage.png?alt=media&amp;token=3942f557-8ce7-45cc-bba1-728902e68d49" alt=""><figcaption></figcaption></figure>

Copy link the discord gives you and install the bot by pasting it into any browser

<figure><img src="https://2714295573-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FH2xPiUNoVsVJGOZJTB7R%2Fuploads%2FvIgCCNHWa66FcJeAOuWb%2Fimage.png?alt=media&amp;token=8e04557b-9b5f-416e-b185-d0d705f3b713" alt=""><figcaption></figcaption></figure>
