> 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>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://codeforge.gitbook.io/codeforge/sleek-series/sleek-multi-character/discord-integration.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
