Table of Contents

Class PremiumButtonProperties

Namespace
NetCord.Rest
Assembly
NetCord.dll
public class PremiumButtonProperties : IButtonProperties
Inheritance
PremiumButtonProperties
Implements
Inherited Members

Constructors

PremiumButtonProperties(ulong)

public PremiumButtonProperties(ulong skuId)

Parameters

skuId ulong

Properties

ComponentType

Type of the component.

[JsonPropertyName("type")]
public ComponentType ComponentType { get; }

Property Value

ComponentType

Disabled

Whether the button is disabled.

[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
[JsonPropertyName("disabled")]
public bool Disabled { get; set; }

Property Value

bool

SkuId

[JsonPropertyName("sku_id")]
public ulong SkuId { get; set; }

Property Value

ulong

Style

Style of the button.

[JsonPropertyName("style")]
public ButtonStyle Style { get; }

Property Value

ButtonStyle

Methods

WithDisabled(bool)

public PremiumButtonProperties WithDisabled(bool disabled = true)

Parameters

disabled bool

Returns

PremiumButtonProperties

WithSkuId(ulong)

public PremiumButtonProperties WithSkuId(ulong skuId)

Parameters

skuId ulong

Returns

PremiumButtonProperties