Class CheckboxGroupComponentBuilder
- Namespace
- Discord.Interactions.Builders
- Assembly
- Discord.Net.Interactions.dll
Represents a builder for creating CheckboxGroupComponentInfo.
public class CheckboxGroupComponentBuilder : InputComponentBuilder<CheckboxGroupComponentInfo, CheckboxGroupComponentBuilder>, IInputComponentBuilder, IModalComponentBuilder
- Inheritance
-
CheckboxGroupComponentBuilder
- Implements
- Inherited Members
Properties
Instance
protected override CheckboxGroupComponentBuilder Instance { get; }
Property Value
MaxValues
Gets the maximum number of values that can be selected.
public int MaxValues { get; set; }
Property Value
MinValues
Gets the minimum number of values that can be selected.
public int MinValues { get; set; }
Property Value
Options
Gets the options of this checkbox group component.
public IReadOnlyCollection<CheckboxGroupOptionProperties> Options { get; }
Property Value
Methods
AddOption(CheckboxGroupOptionProperties)
Adds an option to Options.
public CheckboxGroupComponentBuilder AddOption(CheckboxGroupOptionProperties option)
Parameters
optionCheckboxGroupOptionPropertiesOption to be added to Options.
Returns
- CheckboxGroupComponentBuilder
The builder instance.
AddOption(Action<CheckboxGroupOptionProperties>)
Adds an option to Options.
public CheckboxGroupComponentBuilder AddOption(Action<CheckboxGroupOptionProperties> configure)
Parameters
configureAction<CheckboxGroupOptionProperties>Radio group option builder factory.
Returns
- CheckboxGroupComponentBuilder
The builder instance.