Table of Contents

Class Entitlement

Namespace
NetCord
Assembly
NetCord.dll
public class Entitlement : Entity, IEntity, ISpanFormattable, IFormattable, IEquatable<Entity>, IJsonModel<JsonEntitlement>
Inheritance
Entitlement
Implements
Inherited Members

Constructors

Entitlement(JsonEntitlement)

public Entitlement(JsonEntitlement jsonModel)

Parameters

jsonModel JsonEntitlement

Properties

ApplicationId

ID of the parent application.

public ulong ApplicationId { get; }

Property Value

ulong

Consumed

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

public bool? Consumed { get; }

Property Value

bool?

Deleted

Indicates whether the entitlement was deleted.

public bool Deleted { get; }

Property Value

bool

EndsAt

Date at which the entitlement is no longer valid. Not present when using test entitlements.

public DateTimeOffset? EndsAt { get; }

Property Value

DateTimeOffset?

GuildId

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

public ulong? GuildId { get; }

Property Value

ulong?

Id

The unique identifier for this object.

public override ulong Id { get; }

Property Value

ulong

SkuId

ID of the SKU.

public ulong SkuId { get; }

Property Value

ulong

StartsAt

Start date at which the entitlement is valid. Not present when using test entitlements.

public DateTimeOffset? StartsAt { get; }

Property Value

DateTimeOffset?

Type

Type of the entitlement.

public EntitlementType Type { get; }

Property Value

EntitlementType

UserId

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

public ulong? UserId { get; }

Property Value

ulong?