> For the complete documentation index, see [llms.txt](https://libertycode.gitbook.io/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://libertycode.gitbook.io/docs/lc_adminmenu/avatars.md).

# Avatars

If avatars in the Admin Menu are not working, that's probably because you didn't set your discord bot token. Here is a simple guide on how to do it.

{% 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&#xD;&#xA;&#xD;&#xA;>)[   ](<https://discord.gg/EUYnw93vKR&#xD;&#xA;&#xD;&#xA;>)
   {% 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&amp;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 %}
