# GetDiscordEmail

## GetDiscordEmail

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

This export allows you to get a player's Discord email if allowed.

#### Query Parameters

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

{% tabs %}
{% tab title="200 Returns email of user if found:" %}

```
'thewolfbadger@gmail.com'
```

{% endtab %}

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

```
nil
```

{% endtab %}
{% endtabs %}
