Table of Contents

Interface IEntitlement

Namespace
Discord
Assembly
Discord.Net.Core.dll
public interface IEntitlement : ISnowflakeEntity, IEntity<ulong>
Inherited Members

Properties

ApplicationId

Gets the ID of the parent application.

ulong ApplicationId { get; }

Property Value

ulong

EndsAt

Gets the end date at which the entitlement is no longer valid.

DateTimeOffset? EndsAt { get; }

Property Value

DateTimeOffset?

Remarks

null when using test entitlements.

GuildId

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

ulong? GuildId { get; }

Property Value

ulong?

Remarks

null if the entitlement is for a user.

IsConsumed

Gets whether this entitlement has been consumed.

bool IsConsumed { get; }

Property Value

bool

Remarks

Not applicable for App Subscriptions.

SkuId

Gets the ID of the SKU this entitlement is for.

ulong SkuId { get; }

Property Value

ulong

StartsAt

Gets the start date at which the entitlement is valid.

DateTimeOffset? StartsAt { get; }

Property Value

DateTimeOffset?

Remarks

null when using test entitlements.

Type

Gets the type of the entitlement.

EntitlementType Type { get; }

Property Value

EntitlementType

UserId

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

ulong? UserId { get; }

Property Value

ulong?

Remarks

null if the entitlement is for a guild.