Interfaceplugin-oauthv0.1.0OAuthLoginWhat exchange() resolves to: who logged in, and what Discord gave back with the tokens. interface OAuthLoginMember overviewPropertiesguildpermissionsscopesuserwebhookPropertiesguildThe server that the bot was added to when the login had the bot scope. guild: APIGuild | undefined;permissionsThe 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;scopesThe scopes Discord granted. It includes scopes that the user approved in an earlier login. scopes: OAuthScope[]useruser: APIUser;webhookThe webhook that Discord created when the login had the webhook.incoming scope. webhook: APIWebhook | undefined;
guildThe server that the bot was added to when the login had the bot scope. guild: APIGuild | undefined;
permissionsThe 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;
scopesThe scopes Discord granted. It includes scopes that the user approved in an earlier login. scopes: OAuthScope[]
webhookThe webhook that Discord created when the login had the webhook.incoming scope. webhook: APIWebhook | undefined;