Skip to content
Interfaceplugin-oauthv0.1.0

OAuthLogin

What exchange() resolves to: who logged in, and what Discord gave back with the tokens.

interface OAuthLogin

guild

The server that the bot was added to when the login had the bot scope.

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;

scopes

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

scopes: OAuthScope[]

webhook

The webhook that Discord created when the login had the webhook.incoming scope.

webhook: APIWebhook | undefined;