> For the complete documentation index, see [llms.txt](https://burkhardt-software.gitbook.io/burkhardt-software-docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://burkhardt-software.gitbook.io/burkhardt-software-docs/fivem-resources/discordaceperms/configuration.md).

# Configuration

{% hint style="danger" %}
Never share your Bot Token with anyone. If you suspect your bot token has been breached, reset it via <https://discord.com/developers/applications>
{% endhint %}

{% hint style="warning" %}
This resource is a Server Sided. Bot Tokens are not exposed to clients. To be on the safe side, please do not give your bot `Administration` privellages. The bot only needs to exist in your server. It doesnt require permissions to work.
{% endhint %}

## Discord Guild ID

To get your Discord Guild ID, you need to go to your server, right click and at the bottom you will see `Copy Server ID`. You can then paste that id into the `Config.GuildID`.

## Discord Bot Token

To get your Discord Bot Token, you can go to <https://discord.com/developers/applications>. From there you can make an application. Once you are in your application on the left hand side you will see a side menu. From there click bot. Then copy/reset the Discord Bot Token. Then put the copied token into `Config.BotToken`.

{% hint style="info" %}
`Config.Debug` is used for server to see debug logs. This allows you to see any errors or what certain people are being given. If you wish to not see these logs in your console. set `Config.Debug` to `false`
{% endhint %}

## Role to Ace

`Config.RoleToAce` is your main configuration. This is where we can set what discord roles get what `Ace Perms`. To begin you need to get a discord role id. To do this you can go to your discord server, right click the role and then press `Copy Role ID`. Once you have that you want to paste that id into the `[]` brackets. Once done, you can then add what ace group/s you would like to assign.

If a role only requires one Ace Group this is the example:

```lua
['1494775168403505284'] = 'group.admin',
```

However if you wish to have multiple Ace Groups under one discord id, this is the example

```lua
['1494775168403505284'] = {'group.admin', 'group.weatherperms', 'group.timeperms'},
```

Make sure when you set the groups that they are named correctly. If you misspell a groups name, it will simply not give that group to the user. If you have any issues or need more support, do not hesitate to ask our support team at our [Discord](https://discord.gg/X9dUJBdrgq).
