Skip to content

GatewayEntitlementCreateDispatchData

https://docs.discord.com/developers/topics/gateway-events#entitlement-create

Signature

export type GatewayEntitlementCreateDispatchData = Omit<GatewayEntitlementModifyDispatchData, 'ends_at'> & {    ends_at: null;};

Properties

guild_id?: Snowflake;

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

user_id?: Snowflake;

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

promotion_id?: Snowflake | null;

ID of the promotion that granted this entitlement. https://docs.discord.com/developers/resources/entitlement#entitlement-object-entitlement-example

gift_code_flags?: number;

Flags for the gift code that granted this entitlement, if any. https://docs.discord.com/developers/resources/entitlement#entitlement-object-entitlement-example

subscription_id?: Snowflake;

ID of the subscription that granted this entitlement, if any. https://docs.discord.com/developers/resources/entitlement#entitlement-object-entitlement-example

deleted: boolean;

Whether the entitlement was deleted

starts_at: string | null;

Start date at which the entitlement is valid.

consumed?: boolean;

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