interface APIEntitlement

external
export interface APIEntitlement

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

external
application_id : Snowflake

ID of the parent application

optionalexternal
consumed? : boolean

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

external
deleted : boolean

Whether the entitlement was deleted

optionalexternal
ends_at? : string

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

optionalexternal
guild_id? : Snowflake

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

external
id : Snowflake

ID of the entitlement

external
sku_id : Snowflake

ID of the SKU

optionalexternal
starts_at? : string

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

external
type : EntitlementType

Type of entitlement

optionalexternal
user_id? : Snowflake

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