Search Results for

    Show / Hide Table of Contents

    Class DiscordEntitlementData

    Represents a Discord entitlement. Docs: https://discord.com/developers/docs/game-sdk/store#data-models-entitlement-struct

    Inheritance
    Object
    DiscordEntitlementData
    Implements
    IEquatable<DiscordEntitlementData>
    Inherited Members
    System.Object.Equals(System.Object)
    Object.Equals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    System.Object.MemberwiseClone()
    System.Object.ReferenceEquals(System.Object, System.Object)
    Object.ToString()
    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 Source

    ApplicationId

    The Application id that owns the entitlement.

    Declaration
    [JsonPropertyName("application_id")]
    public ulong ApplicationId { get; set; }
    Property Value
    Type Description
    System.UInt64
    | Improve this Doc View Source

    Consumed

    Whether the entitlement has been consumed.

    Declaration
    [JsonPropertyName("consumed")]
    public bool Consumed { get; set; }
    Property Value
    Type Description
    Boolean
    | Improve this Doc View Source

    Deleted

    Whether the entitlement has been deleted.

    Declaration
    [JsonPropertyName("deleted")]
    public bool Deleted { get; set; }
    Property Value
    Type Description
    Boolean
    | Improve this Doc View Source

    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>
    | Improve this Doc View Source

    Id

    The id of the entitlement.

    Declaration
    [JsonPropertyName("id")]
    public ulong Id { get; set; }
    Property Value
    Type Description
    System.UInt64
    | Improve this Doc View Source

    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>
    | Improve this Doc View Source

    SkuId

    The list SKU ids to check entitlements for

    Declaration
    [JsonPropertyName("sku_id")]
    public ulong SkuId { get; set; }
    Property Value
    Type Description
    System.UInt64
    | Improve this Doc View Source

    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>
    | Improve this Doc View Source

    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>
    | Improve this Doc View Source

    Type

    The type of the entitlement.

    Declaration
    [JsonPropertyName("type")]
    public DiscordEntitlementType Type { get; set; }
    Property Value
    Type Description
    DiscordEntitlementType
    | Improve this Doc View Source

    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>

    Implements

    System.IEquatable<T>
    • Improve this Doc
    • View Source
    In This Article
    Back to top Generated by DocFX