Preview environment

interface RESTGetAPIOAuth2CurrentAuthorizationResult

export interface RESTGetAPIOAuth2CurrentAuthorizationResult

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

application : Partial<APIApplication>

the current application

expires : string

when the access token expires

scopes : OAuth2Scopes[]

the scopes the user has authorized the application for

optional
user? : APIUser

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