Class DiscordEntitlementData
Represents a Discord entitlement. Docs: https://discord.com/developers/docs/game-sdk/store#data-models-entitlement-struct
Implements
Inherited Members
Namespace: Color_Chan.Discord.Core.Common.API.DataModels.Entitlement
Assembly: Color-Chan.Discord.Core.dll
Syntax
public class DiscordEntitlementData : IEquatable<DiscordEntitlementData>
Properties
| Improve this Doc View SourceApplicationId
The Application id that owns the entitlement.
Declaration
[JsonPropertyName("application_id")]
public ulong ApplicationId { get; set; }
Property Value
Type | Description |
---|---|
System.UInt64 |
Consumed
Whether the entitlement has been consumed.
Declaration
[JsonPropertyName("consumed")]
public bool Consumed { get; set; }
Property Value
Type | Description |
---|---|
Boolean |
Deleted
Whether the entitlement has been deleted.
Declaration
[JsonPropertyName("deleted")]
public bool Deleted { get; set; }
Property Value
Type | Description |
---|---|
Boolean |
EndsAt
The time at which the entitlement ends at. This is only present if the entitlement is not a test subscription.
Declaration
[JsonPropertyName("ends_at")]
public DateTimeOffset? EndsAt { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<DateTimeOffset> |
Id
The id of the entitlement.
Declaration
[JsonPropertyName("id")]
public ulong Id { get; set; }
Property Value
Type | Description |
---|---|
System.UInt64 |
PromotionId
The id of the promotion that the entitlement was used with.
Declaration
[JsonPropertyName("promotion_id")]
public ulong? PromotionId { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<System.UInt64> |
SkuId
The list SKU ids to check entitlements for
Declaration
[JsonPropertyName("sku_id")]
public ulong SkuId { get; set; }
Property Value
Type | Description |
---|---|
System.UInt64 |
StartsAt
The time at which the entitlement starts at. This is only present if the entitlement is not a test subscription.
Declaration
[JsonPropertyName("starts_at")]
public DateTimeOffset? StartsAt { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<DateTimeOffset> |
SubscriptionId
The id of the subscription that was used to bought the entitlement. This is only present if the entitlement was bought through a subscription.
Declaration
[JsonPropertyName("subscription_id")]
public ulong? SubscriptionId { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<System.UInt64> |
Type
The type of the entitlement.
Declaration
[JsonPropertyName("type")]
public DiscordEntitlementType Type { get; set; }
Property Value
Type | Description |
---|---|
DiscordEntitlementType |
UserId
The user id to look up entitlements for
Declaration
[JsonPropertyName("user_id")]
public ulong? UserId { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<System.UInt64> |