Skip to main content

DiscordCurrentAuthorization

@discordeno/botDocs


Documentation / @discordeno/bot / DiscordCurrentAuthorization

Interface: DiscordCurrentAuthorization

https://discord.com/developers/docs/topics/oauth2#get-current-authorization-information-response-structure

Properties

application

application: DiscordApplication

Defined in

packages/types/dist/types/discord.d.ts:430


expires

expires: string

when the access token expires

Defined in

packages/types/dist/types/discord.d.ts:434


scopes

scopes: OAuth2Scope[]

the scopes the user has authorized the application for

Defined in

packages/types/dist/types/discord.d.ts:432


user?

optional user: DiscordUser

the user who has authorized, if the user has authorized with the identify scope

Defined in

packages/types/dist/types/discord.d.ts:436