Table of Contents

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

CheckboxGroupComponentBuilder

MaxValues

Gets the maximum number of values that can be selected.

public int MaxValues { get; set; }

Property Value

int

MinValues

Gets the minimum number of values that can be selected.

public int MinValues { get; set; }

Property Value

int

Options

Gets the options of this checkbox group component.

public IReadOnlyCollection<CheckboxGroupOptionProperties> Options { get; }

Property Value

IReadOnlyCollection<CheckboxGroupOptionProperties>

Methods

AddOption(CheckboxGroupOptionProperties)

Adds an option to Options.

public CheckboxGroupComponentBuilder AddOption(CheckboxGroupOptionProperties option)

Parameters

option CheckboxGroupOptionProperties

Option 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

configure Action<CheckboxGroupOptionProperties>

Radio group option builder factory.

Returns

CheckboxGroupComponentBuilder

The builder instance.