> For the complete documentation index, see [llms.txt](https://codeforge.gitbook.io/codeforge/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://codeforge.gitbook.io/codeforge/sleek-series/sleek-multi-character/discord-integration.md).

# Discord Integration

**HOW TO CREATE A DISCORD BOT?**

1. Go to: [discord.com/developers/](https://discord.com/developers/applications) and log in with your Discord account.

<figure><img src="/files/AOZVXSBhhyp6vUNkGN9n" alt=""><figcaption></figcaption></figure>

2. Click on the “New Application” button.

<figure><img src="/files/O2FdlXbbqa9vCSadKJTC" alt=""><figcaption></figcaption></figure>

3. Give the application a name and click “Create”.

<figure><img src="/files/AbMpNodJGF2MmeQi4wKr" alt=""><figcaption></figcaption></figure>

4. Navigate to the “Bot” tab to configure it. Add the permissions you want, permissions related to role detection are paramount.

<figure><img src="/files/NMtYXOxM6DqAL60KV6WD" alt=""><figcaption></figcaption></figure>

5. Copy the token using the “Copy” button.&#x20;

{% hint style="danger" %}
It should be worth noting that this token is essentially your bot’s password. You should **never** share this with someone else. In doing so, someone can log in to your bot and do malicious things, such as leaving servers, ban all members inside a server, or pinging everyone maliciously.

The possibilities are endless, so **do not share this token.**

If you accidentally leaked your token, click the “Regenerate” button as soon as possible. This revokes your old token and re-generates a new one. Now you need to use the new token to login.
{% endhint %}

6. This token must be copied into your `multicharacter config`.

<figure><img src="/files/gGWB20iQj9nSoJ6O4UqH" alt=""><figcaption></figcaption></figure>

7. What do I put in `guild =` ? There you enter the ID of your discord server where the guest bot is. Right click on your discord channel and click copy ID, note that you must have the developer mode of your discord account activated.

<figure><img src="/files/meRCKk6E1B5RC2jJMdrN" alt=""><figcaption></figcaption></figure>

8. What do I put in `groupId =` in the Slots configuration? There you should put the ID of the range you want the bot to use to give that number of slots. Go to your server's role configuration and right click and copy the ID of the rank you want.

<figure><img src="/files/Oj7EJoJTcBkIUuZo2uyV" alt=""><figcaption></figcaption></figure>
