Skip to content
Interfaceplugin-linked-rolesv0.1.0

ConnectingUser

What your values gets about the person who is connecting.

interface ConnectingUser<TScopes extends OAuthScope = never>

Properties

asUser

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.

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

user

Their Discord account.

user: APIUser;