Class PremiumButtonProperties
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
Disabled
Whether the button is disabled.
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
[JsonPropertyName("disabled")]
public bool Disabled { get; set; }
Property Value
SkuId
[JsonPropertyName("sku_id")]
public ulong SkuId { get; set; }
Property Value
Style
Style of the button.
[JsonPropertyName("style")]
public ButtonStyle Style { get; }
Property Value
Methods
WithDisabled(bool)
public PremiumButtonProperties WithDisabled(bool disabled = true)
Parameters
disabled
bool
Returns
WithSkuId(ulong)
public PremiumButtonProperties WithSkuId(ulong skuId)
Parameters
skuId
ulong