Skip to content
Interfaceplugin-oauthv0.1.0

CompletedLogin

A login that finished on the callback route.

interface CompletedLogin extends OAuthLogin

permissions

The permissions of the bot's own role in guild after the login. The visitor can untick permissions on Discord's screen, so check this before you rely on one.

permissions: bigint | undefined;

Inherited from:OAuthLogin

returnTo

The path that the login link asked to end on, from loginUrl({ returnTo }). It always starts with one /.

returnTo: string | undefined;

scopes

The scopes Discord granted. It includes scopes that the user approved in an earlier login.

scopes: OAuthScope[]

Inherited from:OAuthLogin