Table of Contents

Class Sku

Namespace
NetCord.Rest
Assembly
NetCord.dll

Represents a premium offering that can be made to application users/guilds.

public class Sku : ClientEntity, IEntity, ISpanFormattable, IFormattable, IEquatable<Entity>, IJsonModel<JsonSku>
Inheritance
Sku
Implements
Inherited Members

Constructors

Sku(JsonSku, RestClient)

Represents a premium offering that can be made to application users/guilds.

public Sku(JsonSku jsonModel, RestClient client)

Parameters

jsonModel JsonSku
client RestClient

Properties

ApplicationId

The ID corresponding to the SKU's parent application.

public ulong ApplicationId { get; }

Property Value

ulong

Flags

The SKU's content flags.

public SkuFlags Flags { get; }

Property Value

SkuFlags

Id

The unique identifier for this object.

public override ulong Id { get; }

Property Value

ulong

Name

The SKU's customer-facing name.

public string Name { get; }

Property Value

string

Slug

The system-generated URL slug, based on the SKU's name.

public string Slug { get; }

Property Value

string

Type

The SKU's purchase type.

public SkuType Type { get; }

Property Value

SkuType

Methods

GetSubscriptionAsync(ulong, RestRequestProperties?, CancellationToken)

public Task<Subscription> GetSubscriptionAsync(ulong subscriptionId, RestRequestProperties? properties = null, CancellationToken cancellationToken = default)

Parameters

subscriptionId ulong
properties RestRequestProperties
cancellationToken CancellationToken

Returns

Task<Subscription>

GetSubscriptionsAsync(SubscriptionPaginationProperties?, RestRequestProperties?)

public IAsyncEnumerable<Subscription> GetSubscriptionsAsync(SubscriptionPaginationProperties? paginationProperties = null, RestRequestProperties? properties = null)

Parameters

paginationProperties SubscriptionPaginationProperties
properties RestRequestProperties

Returns

IAsyncEnumerable<Subscription>