Class PremiumButtonProperties
public class PremiumButtonProperties : IButtonProperties, IActionRowComponentProperties, IJsonSerializable<IActionRowComponentProperties>, IComponentSectionAccessoryComponentProperties, IComponentProperties, IJsonSerializable<IComponentSectionAccessoryComponentProperties>
- Inheritance
-
PremiumButtonProperties
- Implements
- Inherited Members
Constructors
PremiumButtonProperties(ulong)
public PremiumButtonProperties(ulong skuId)
Parameters
skuIdulong
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
Id
Unique identifier for the component. Auto populated through increment if not provided.
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
[JsonPropertyName("id")]
public int? Id { get; set; }
Property Value
- int?
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)
Whether the button is disabled.
public PremiumButtonProperties WithDisabled(bool disabled = true)
Parameters
disabledbool
Returns
WithId(int?)
Unique identifier for the component. Auto populated through increment if not provided.
public PremiumButtonProperties WithId(int? id)
Parameters
idint?
Returns
WithSkuId(ulong)
public PremiumButtonProperties WithSkuId(ulong skuId)
Parameters
skuIdulong