# GetDiscordRoles

## GetDiscordRoles

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

This export allows you to get a player's Discord roles within the server (discord role IDs returned).

#### Query Parameters

| Name | Type   | Description                                 |
| ---- | ------ | ------------------------------------------- |
| user | object | The source of the player you want to check. |

{% tabs %}
{% tab title="200 Returns array of role IDs if found:" %}

```
{ 597446100206616596, 597450498060058624, 597929446124552192 }
```

{% endtab %}

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

```
false
```

{% endtab %}
{% endtabs %}
