class Entitlement
extends
Baseexport class Entitlement extends BaseRepresents an Entitlement
applicationId : Snowflake
The id of the parent application
consumed : boolean
Whether this entitlement has been consumed
deleted : boolean
Whether this entitlement was deleted
The end date at which this entitlement is no longer valid This is only null for test entitlements
The timestamp at which this entitlement is no longer valid This is only null for test entitlements
id : Snowflake
The id of the entitlement
skuId : Snowflake
The id of the associated SKU
The start date at which this entitlement is valid This is only null for test entitlements
The timestamp at which this entitlement is valid This is only null for test entitlements
type : EntitlementType
The type of this entitlement
userId : Snowflake
The id of the user that is granted access to this entitlement's SKU
Marks this entitlement as consumed Only available for One-Time Purchase consumable SKUs.
isActive() : boolean
Indicates whether this entitlement is active
Indicates whether this entitlement is a guild subscription
isTest() : this is this & { startsTimestamp: null; endsTimestamp: null; get startsAt(): null; get endsAt(): null; }
Indicates whether this entitlement is a test entitlement
Indicates whether this entitlement is a user subscription