Table of Contents

Class RestSubscription

Namespace
Discord.Rest
Assembly
Discord.Net.Rest.dll

Represents an application subscription.

public class RestSubscription : RestEntity<ulong>, ISubscription, ISnowflakeEntity, IEntity<ulong>
Inheritance
RestSubscription
Implements
Inherited Members

Properties

CanceledAt

Gets when the subscription was canceled.

public 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.

public string Country { get; }

Property Value

string

Remarks

Requires an oauth scope.

CreatedAt

Gets when the snowflake was created.

public DateTimeOffset CreatedAt { get; }

Property Value

DateTimeOffset

A DateTimeOffset representing when the entity was first created.

CurrentPeriodEnd

Gets end of the current subscription period.

public DateTimeOffset CurrentPeriodEnd { get; }

Property Value

DateTimeOffset

CurrentPeriodStart

Gets the start of the current subscription period.

public DateTimeOffset CurrentPeriodStart { get; }

Property Value

DateTimeOffset

EntitlementIds

Gets the entitlements granted for this subscription.

public IReadOnlyCollection<ulong> EntitlementIds { get; }

Property Value

IReadOnlyCollection<ulong>

SKUIds

Gets the SKUs subscribed to.

public IReadOnlyCollection<ulong> SKUIds { get; }

Property Value

IReadOnlyCollection<ulong>

Status

Gets the current status of the subscription.

public SubscriptionStatus Status { get; }

Property Value

SubscriptionStatus

UserId

Gets the ID of the user who is subscribed.

public ulong UserId { get; }

Property Value

ulong