Table of Contents

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

DateTimeOffset?

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

string

CurrentPeriodEnd

The end of the current subscription period.

public DateTimeOffset CurrentPeriodEnd { get; }

Property Value

DateTimeOffset

CurrentPeriodStart

The start of the current subscription period.

public DateTimeOffset CurrentPeriodStart { get; }

Property Value

DateTimeOffset

EntitlementIds

The IDs of the entitlements granted for this subscription.

public IReadOnlyList<ulong> EntitlementIds { get; }

Property Value

IReadOnlyList<ulong>

Id

The ID of the subscription.

public override ulong Id { get; }

Property Value

ulong

RenewalSkuIds

The IDs of the SKUs that will be used for renewal.

public IReadOnlyList<ulong>? RenewalSkuIds { get; }

Property Value

IReadOnlyList<ulong>

SkuIds

The IDs of the SKUs subscribed to.

public IReadOnlyList<ulong> SkuIds { get; }

Property Value

IReadOnlyList<ulong>

Status

The current status of the subscription.

public SubscriptionStatus Status { get; }

Property Value

SubscriptionStatus

UserId

The ID of the user who is subscribed.

public ulong UserId { get; }

Property Value

ulong