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
EndsAt
Gets the end date at which the entitlement is no longer valid.
DateTimeOffset? EndsAt { get; }
Property Value
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
Remarks
null if the entitlement is for a user.
IsConsumed
Gets whether this entitlement has been consumed.
bool IsConsumed { get; }
Property Value
Remarks
Not applicable for App Subscriptions.
SkuId
Gets the ID of the SKU this entitlement is for.
ulong SkuId { get; }
Property Value
StartsAt
Gets the start date at which the entitlement is valid.
DateTimeOffset? StartsAt { get; }
Property Value
Remarks
null when using test entitlements.
Type
Gets the type of the entitlement.
EntitlementType Type { get; }
Property Value
UserId
Gets the ID of the user that is granted access to the entitlement's SKU.
ulong? UserId { get; }
Property Value
Remarks
null if the entitlement is for a guild.