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
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
EndsAt
Date at which the entitlement is no longer valid. Not present when using test entitlements.
public DateTimeOffset? EndsAt { get; }
Property Value
GuildId
ID of the guild that is granted access to the entitlement's SKU.
public ulong? GuildId { get; }
Property Value
Id
The unique identifier for this object.
public override ulong Id { get; }
Property Value
SkuId
ID of the SKU.
public ulong SkuId { get; }
Property Value
StartsAt
Start date at which the entitlement is valid. Not present when using test entitlements.
public DateTimeOffset? StartsAt { get; }
Property Value
Type
Type of the entitlement.
public EntitlementType Type { get; }
Property Value
UserId
ID of the user that is granted access to the entitlement's SKU.
public ulong? UserId { get; }