DiscordAccessTokenResponse
@discordeno/bot • Docs
Documentation / @discordeno/bot / DiscordAccessTokenResponse
Interface: DiscordAccessTokenResponse
Properties
access_token
access_token:
string
The access token of the user
Defined in
packages/types/dist/types/discord.d.ts:403
expires_in
expires_in:
number
The number of seconds after that the access token is expired
Defined in
packages/types/dist/types/discord.d.ts:407
guild?
optional
guild:DiscordGuild
The guild the bot has been added. Requires the bot
scope
Defined in
packages/types/dist/types/discord.d.ts:420
refresh_token
refresh_token:
string
The refresh token to refresh the access token
Remarks
When the token exchange is a client credentials type grant this value is not defined.
Defined in
packages/types/dist/types/discord.d.ts:414
scope
scope:
string
The scopes for the access token
Defined in
packages/types/dist/types/discord.d.ts:416
token_type
token_type:
string
The type of token
Defined in
packages/types/dist/types/discord.d.ts:405
webhook?
optional
webhook:DiscordIncomingWebhook
The webhook the user created for the application. Requires the webhook.incoming
scope
Defined in
packages/types/dist/types/discord.d.ts:418