> For the complete documentation index, see [llms.txt](https://docs.badger.store/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.badger.store/fivem-discord-scripts/badger_discord_api/getguildrolelist.md).

# GetGuildRoleList

## GetGuildRoleList

<mark style="color:blue;">`GET`</mark> `exports.Badger_Discord_API:GetGuildRoleList()`

This export allows you to get all of the server's roles with their role names and role IDs correspondent to each other.

{% tabs %}
{% tab title="200 Returns associative array if found:" %}

```
{ 
    ['Founder'] = 597446100206616596, 
    ['Staff'] = 597450498060058624, 
    ['Java Developer'] = 597928420017438725 
}
```

{% endtab %}

{% tab title="404 Returns nil if not found:" %}

```
nil
```

{% endtab %}
{% endtabs %}
