Skip to main content

DiscordCurrentAuthorization

Documentation


Documentation / @discordeno/types / DiscordCurrentAuthorization

Interface: DiscordCurrentAuthorization

Defined in: discord/oauth2.ts:201

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

Properties

application

application: DiscordApplication

Defined in: discord/oauth2.ts:202


expires

expires: string

Defined in: discord/oauth2.ts:206

when the access token expires


scopes

scopes: OAuth2Scope[]

Defined in: discord/oauth2.ts:204

the scopes the user has authorized the application for


user?

optional user?: DiscordUser

Defined in: discord/oauth2.ts:208

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