# Avatars

{% stepper %}
{% step %}

### Create Discord application

Go to the <https://discord.com/developers/applications> and create new application.\
\
![](https://2865522358-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F8th5q7QOnHjL9q40xBgM%2Fuploads%2F7XLlxOpCRCJdTtLBeSFP%2Fimage.png?alt=media\&token=1f51cdfc-e751-46fc-8071-40d429e8e8a5)<br>
{% endstep %}

{% step %}

### Copy your Bot Token

Go to the "Bot" page and copy your bot token.\
\
![](https://2865522358-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F8th5q7QOnHjL9q40xBgM%2Fuploads%2F3q52sDp1wGIVKGOyFiWA%2Fimage.png?alt=media\&token=5b9ebc84-3f83-492c-b16b-eef524f06f43)\
\
![](https://2865522358-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F8th5q7QOnHjL9q40xBgM%2Fuploads%2Fj2SEyrYNyUJo918Fz5p0%2Fimage.png?alt=media\&token=9c7f3425-8415-4585-92ef-ce1156c39b32)
{% endstep %}

{% step %}

### Paste your Discord Bot Token in config\_server.lua

{% code title="config\_server.lua" lineNumbers="true" %}

```lua
-- You need to set these values if you want to use discord permissions and avatars.
local DISCORD_GUILD_ID = ''
local DISCORD_BOT_TOKEN = '' -- <- HERE
```

{% endcode %}
{% endstep %}

{% step %}

### Add the Bot to your discord server

1. Go to the OAuth2 page and select "bot" scope\
   \
   ![](https://2865522358-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F8th5q7QOnHjL9q40xBgM%2Fuploads%2FT4OvVlEt1AeHrImwk5Rm%2Fimage.png?alt=media\&token=d42e3b2b-ce35-4db5-ae31-4409135cda8a)
2. Open generated link and authorize bot on your server.\
   \
   ![](https://2865522358-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F8th5q7QOnHjL9q40xBgM%2Fuploads%2FpY9waYXw2m9xoxTN6o9A%2Fimage.png?alt=media\&token=3f885370-de14-4c5e-a02e-f66fd2d228c3)\
   \
   ![](https://2865522358-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F8th5q7QOnHjL9q40xBgM%2Fuploads%2FkKZBkLUVWW59GYedFDBx%2Fimage.png?alt=media\&token=0d923ece-2890-4a7c-96ac-02e1fc83100f)[   ](https://discord.gg/EUYnw93vKR)[   ](https://discord.gg/EUYnw93vKR)
   {% endstep %}

{% step %}

### Set the Guild ID

Copy the Server ID and paste it in `config_server.lua`

<div align="left" data-full-width="false"><figure><img src="https://2865522358-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F8th5q7QOnHjL9q40xBgM%2Fuploads%2FJQVP6CWzpezbmCo1YUEd%2F2.png?alt=media&#x26;token=2a7ada66-be9b-49ea-b949-777986f9e4eb" alt=""><figcaption></figcaption></figure></div>

{% code title="config\_server.lua" lineNumbers="true" %}

```lua
-- You need to set these values if you want to use discord permissions and avatars.
local DISCORD_GUILD_ID = ''  -- <- HERE
local DISCORD_BOT_TOKEN = ''
```

{% endcode %}
{% endstep %}

{% step %}

### Done

And that's it :) If you carefully followed previous steps, the Discord avatars should work now.
{% endstep %}
{% endstepper %}


---

# Agent Instructions: 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:

```
GET https://libertycode.gitbook.io/docs/lc_adminmenu/avatars.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
