# ConnectingUser

`interface` in `plugin-linked-roles` · v0.1.0

<https://seedcord.org/docs/packages/plugin-linked-roles/0.1.0/interfaces/connecting-user>

What your `values` gets about the person who is connecting.

```ts
interface ConnectingUser<TScopes extends OAuthScope = never>
```

## Properties

### asUser

```ts
asUser: UserCalls<TScopes | "role_connections.write">;
```

Functions that call Discord's API with this person's own token, the one they approved on the consent
screen. `asUser.connections()` returns the accounts they linked on their Discord profile, like GitHub.
A call like that needs its scope in your `scopes`, or it doesn't compile.

### user

```ts
user: APIUser;
```

Their Discord account.
