interface APIEntitlement {
    application_id: string;
    consumed?: boolean;
    deleted: boolean;
    ends_at: null | string;
    guild_id?: string;
    id: string;
    sku_id: string;
    starts_at: null | string;
    type: EntitlementType;
    user_id?: string;
}

Properties

application_id: string

ID of the parent application

consumed?: boolean

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

deleted: boolean

Whether the entitlement was deleted

ends_at: null | string

Date at which the entitlement is no longer valid.

guild_id?: string

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

id: string

ID of the entitlement

sku_id: string

ID of the SKU

starts_at: null | string

Start date at which the entitlement is valid.

Type of entitlement

user_id?: string

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