Class Subscription
- Namespace
- NetCord
- Assembly
- NetCord.dll
public class Subscription : Entity, IEntity, ISpanFormattable, IFormattable, IEquatable<Entity>, IJsonModel<JsonSubscription>
- Inheritance
-
Subscription
- Implements
- Inherited Members
Constructors
Subscription(JsonSubscription)
public Subscription(JsonSubscription jsonModel)
Parameters
jsonModel
JsonSubscription
Properties
CanceledAt
When the subscription was canceled.
public DateTimeOffset? CanceledAt { get; }
Property Value
Country
The country code of the payment source used to purchase the subscription. Missing unless queried with a private OAuth scope.
public string? Country { get; }
Property Value
CurrentPeriodEnd
The end of the current subscription period.
public DateTimeOffset CurrentPeriodEnd { get; }
Property Value
CurrentPeriodStart
The start of the current subscription period.
public DateTimeOffset CurrentPeriodStart { get; }
Property Value
EntitlementIds
The IDs of the entitlements granted for this subscription.
public IReadOnlyList<ulong> EntitlementIds { get; }
Property Value
Id
The ID of the subscription.
public override ulong Id { get; }
Property Value
RenewalSkuIds
The IDs of the SKUs that will be used for renewal.
public IReadOnlyList<ulong>? RenewalSkuIds { get; }
Property Value
SkuIds
The IDs of the SKUs subscribed to.
public IReadOnlyList<ulong> SkuIds { get; }
Property Value
Status
The current status of the subscription.
public SubscriptionStatus Status { get; }
Property Value
UserId
The ID of the user who is subscribed.
public ulong UserId { get; }