Table of Contents

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

DateTimeOffset?

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

string

Remarks

Requires an oauth scope.

CurrentPeriodEnd

Gets end of the current subscription period.

DateTimeOffset CurrentPeriodEnd { get; }

Property Value

DateTimeOffset

CurrentPeriodStart

Gets the start of the current subscription period.

DateTimeOffset CurrentPeriodStart { get; }

Property Value

DateTimeOffset

EntitlementIds

Gets the entitlements granted for this subscription.

IReadOnlyCollection<ulong> EntitlementIds { get; }

Property Value

IReadOnlyCollection<ulong>

RenewalSKUIds

Gets the SKUs that this user will be subscribed to at renewal.

IReadOnlyCollection<ulong> RenewalSKUIds { get; }

Property Value

IReadOnlyCollection<ulong>

SKUIds

Gets the SKUs subscribed to.

IReadOnlyCollection<ulong> SKUIds { get; }

Property Value

IReadOnlyCollection<ulong>

Status

Gets the current status of the subscription.

SubscriptionStatus Status { get; }

Property Value

SubscriptionStatus

UserId

Gets the ID of the user who is subscribed.

ulong UserId { get; }

Property Value

ulong