Interface ISubscription
- Namespace
- Discord
- Assembly
- Discord.Net.Core.dll
Represents a subscription object.
public interface ISubscription : ISnowflakeEntity, IEntity<ulong>
- Inherited Members
Properties
CanceledAt
Gets when the subscription was canceled.
DateTimeOffset? CanceledAt { get; }
Property Value
Remarks
null if the subscription has not been canceled.
Country
Gets country code of the payment source used to purchase the subscription.
string Country { get; }
Property Value
Remarks
Requires an oauth scope.
CurrentPeriodEnd
Gets end of the current subscription period.
DateTimeOffset CurrentPeriodEnd { get; }
Property Value
CurrentPeriodStart
Gets the start of the current subscription period.
DateTimeOffset CurrentPeriodStart { get; }
Property Value
EntitlementIds
Gets the entitlements granted for this subscription.
IReadOnlyCollection<ulong> EntitlementIds { get; }
Property Value
SKUIds
Gets the SKUs subscribed to.
IReadOnlyCollection<ulong> SKUIds { get; }
Property Value
Status
Gets the current status of the subscription.
SubscriptionStatus Status { get; }
Property Value
UserId
Gets the ID of the user who is subscribed.
ulong UserId { get; }