APIEntitlement
https://discord.com/developers/docs/monetization/entitlements#entitlement-object-entitlement-structure
Signature
export interface APIEntitlementProperties
10Methods
0No methods.
Properties
id: Snowflake;ID of the entitlement
sku_id: Snowflake;ID of the SKU
user_id?: Snowflake;ID of the user that is granted access to the entitlement's sku
guild_id?: Snowflake;ID of the guild that is granted access to the entitlement's sku
application_id: Snowflake;ID of the parent application
type: EntitlementType;Type of entitlement
deleted: boolean;Whether the entitlement was deleted
starts_at: string | null;Start date at which the entitlement is valid.
ends_at: string | null;Date at which the entitlement is no longer valid.
consumed?: boolean;For consumable items, whether or not the entitlement has been consumed