Skip to main content

Entitlement

@discordeno/botDocs


Documentation / @discordeno/bot / Entitlement

Interface: Entitlement

Properties

applicationId

applicationId: bigint

ID of the parent application

Defined in

packages/bot/src/transformers/types.ts:657


consumed?

optional consumed: boolean

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

Defined in

packages/bot/src/transformers/types.ts:667


deleted

deleted: boolean

Entitlement was deleted

Defined in

packages/bot/src/transformers/types.ts:661


endsAt?

optional endsAt: number

Date at which the entitlement is no longer valid. Not present when using test entitlements

Defined in

packages/bot/src/transformers/types.ts:665


guildId?

optional guildId: bigint

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

Defined in

packages/bot/src/transformers/types.ts:655


id

id: bigint

ID of the entitlement

Defined in

packages/bot/src/transformers/types.ts:649


skuId

skuId: bigint

ID of the SKU

Defined in

packages/bot/src/transformers/types.ts:651


startsAt?

optional startsAt: number

Start date at which the entitlement is valid. Not present when using test entitlements

Defined in

packages/bot/src/transformers/types.ts:663


type

type: DiscordEntitlementType

Type of entitlement

Defined in

packages/bot/src/transformers/types.ts:659


userId?

optional userId: bigint

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

Defined in

packages/bot/src/transformers/types.ts:653