Skip to main content

DiscordEntitlement

@discordeno/bot


Documentation / @discordeno/bot / DiscordEntitlement

Interface: DiscordEntitlement

Defined in: packages/types/dist/types/discord/entitlement.d.ts:3

https://discord.com/developers/docs/resources/entitlement#entitlement-object-entitlement-structure

Properties

application_id

application_id: string

Defined in: packages/types/dist/types/discord/entitlement.d.ts:13

ID of the parent application


consumed?

optional consumed: boolean

Defined in: packages/types/dist/types/discord/entitlement.d.ts:23

For consumable items, whether or not the entitlement has been consumed


deleted

deleted: boolean

Defined in: packages/types/dist/types/discord/entitlement.d.ts:17

Entitlement was deleted


ends_at

ends_at: null | string

Defined in: packages/types/dist/types/discord/entitlement.d.ts:21

Date at which the entitlement is no longer valid.


guild_id?

optional guild_id: string

Defined in: packages/types/dist/types/discord/entitlement.d.ts:11

ID of the guild that is granted access to the entitlement's sku


id

id: string

Defined in: packages/types/dist/types/discord/entitlement.d.ts:5

ID of the entitlement


sku_id

sku_id: string

Defined in: packages/types/dist/types/discord/entitlement.d.ts:7

ID of the SKU


starts_at

starts_at: null | string

Defined in: packages/types/dist/types/discord/entitlement.d.ts:19

Start date at which the entitlement is valid.


type

type: DiscordEntitlementType

Defined in: packages/types/dist/types/discord/entitlement.d.ts:15

Type of entitlement


user_id?

optional user_id: string

Defined in: packages/types/dist/types/discord/entitlement.d.ts:9

ID of the user that is granted access to the entitlement's sku