Interface IDiscordEntitlement
Represents a Discord entitlement. Docs: https://discord.com/developers/docs/game-sdk/store#data-models-entitlement-struct
Namespace: Color_Chan.Discord.Core.Common.Models.Entitlement
Assembly: Color-Chan.Discord.Core.dll
Syntax
public interface IDiscordEntitlement
Properties
| Improve this Doc View SourceApplicationId
The Application id that owns the entitlement.
Declaration
ulong ApplicationId { get; set; }
Property Value
Type | Description |
---|---|
System.UInt64 |
Consumed
Whether the entitlement has been consumed.
Declaration
bool Consumed { get; set; }
Property Value
Type | Description |
---|---|
Boolean |
Deleted
Whether the entitlement has been deleted.
Declaration
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
DateTimeOffset? EndsAt { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<DateTimeOffset> |
Id
The id of the entitlement.
Declaration
ulong Id { get; set; }
Property Value
Type | Description |
---|---|
System.UInt64 |
PromotionId
The id of the promotion that the entitlement was used with.
Declaration
ulong? PromotionId { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<System.UInt64> |
SkuId
The list SKU ids to check entitlements for
Declaration
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
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
ulong? SubscriptionId { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<System.UInt64> |
Type
The type of the entitlement.
Declaration
DiscordEntitlementType Type { get; set; }
Property Value
Type | Description |
---|---|
DiscordEntitlementType |
UserId
The user id to look up entitlements for
Declaration
ulong? UserId { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<System.UInt64> |