Class CheckboxComponentBuilder
- Namespace
- Discord.Interactions.Builders
- Assembly
- Discord.Net.Interactions.dll
Represents a builder for creating CheckboxComponentInfo.
public class CheckboxComponentBuilder : InputComponentBuilder<CheckboxComponentInfo, CheckboxComponentBuilder>, IInputComponentBuilder, IModalComponentBuilder
- Inheritance
-
CheckboxComponentBuilder
- Implements
- Inherited Members
Properties
DefaultState
Gets or sets whether the checkbox is selected by default.
public bool DefaultState { get; set; }
Property Value
Instance
protected override CheckboxComponentBuilder Instance { get; }
Property Value
Methods
WithDefaultState(bool)
Sets the DefaultState
public CheckboxComponentBuilder WithDefaultState(bool defaultState)
Parameters
defaultStateboolDefault state of the checkbox.
Returns
- CheckboxComponentBuilder
The builder instance.