> 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/getdiscordnickname.md).

# GetDiscordNickname

## GetDiscordNickname

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

This export allows you to get a player's Discord nickname on the server.

#### Query Parameters

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

{% tabs %}
{% tab title="200 Returns Discord nickname if found:" %}

```
'Badger [My Nickname]'
```

{% endtab %}

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

```
nil
```

{% endtab %}
{% endtabs %}
