Table of Contents

Class Sku

Namespace
NetCord.Rest
Assembly
NetCord.dll
public class Sku : ClientEntity, IEntity, ISpanFormattable, IFormattable, IEquatable<Entity>, IJsonModel<JsonSku>
Inheritance
Sku
Implements
Inherited Members

Constructors

Sku(JsonSku, RestClient)

public Sku(JsonSku jsonModel, RestClient client)

Parameters

jsonModel JsonSku
client RestClient

Properties

ApplicationId

ID of the parent application.

public ulong ApplicationId { get; }

Property Value

ulong

Flags

Flags of the SKU.

public SkuFlags Flags { get; }

Property Value

SkuFlags

Id

The unique identifier for this object.

public override ulong Id { get; }

Property Value

ulong

Name

Customer-facing name of your premium offering.

public string Name { get; }

Property Value

string

Slug

System-generated URL slug based on the SKU's name.

public string Slug { get; }

Property Value

string

Type

Type of the SKU.

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>