DiscordCurrentAuthorization
Documentation / @discordeno/bot / DiscordCurrentAuthorization
Interface: DiscordCurrentAuthorization
Defined in: packages/types/dist/types/discord/oauth2.d.ts:189
Properties
application
application:
DiscordApplication
Defined in: packages/types/dist/types/discord/oauth2.d.ts:190
expires
expires:
string
Defined in: packages/types/dist/types/discord/oauth2.d.ts:194
when the access token expires
scopes
scopes:
OAuth2Scope
[]
Defined in: packages/types/dist/types/discord/oauth2.d.ts:192
the scopes the user has authorized the application for
user?
optional
user:DiscordUser
Defined in: packages/types/dist/types/discord/oauth2.d.ts:196
the user who has authorized, if the user has authorized with the identify
scope