Skip to main content

DiscordAccessTokenResponse

@discordeno/bot


Documentation / @discordeno/bot / DiscordAccessTokenResponse

Interface: DiscordAccessTokenResponse

Defined in: packages/types/dist/types/discord.d.ts:401

Properties

access_token

access_token: string

Defined in: packages/types/dist/types/discord.d.ts:403

The access token of the user


expires_in

expires_in: number

Defined in: packages/types/dist/types/discord.d.ts:407

The number of seconds after that the access token is expired


guild?

optional guild: DiscordGuild

Defined in: packages/types/dist/types/discord.d.ts:420

The guild the bot has been added. Requires the bot scope


refresh_token

refresh_token: string

Defined in: packages/types/dist/types/discord.d.ts:414

The refresh token to refresh the access token

Remarks

When the token exchange is a client credentials type grant this value is not defined.


scope

scope: string

Defined in: packages/types/dist/types/discord.d.ts:416

The scopes for the access token


token_type

token_type: string

Defined in: packages/types/dist/types/discord.d.ts:405

The type of token


webhook?

optional webhook: DiscordIncomingWebhook

Defined in: packages/types/dist/types/discord.d.ts:418

The webhook the user created for the application. Requires the webhook.incoming scope