Table of Contents

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

bool

Instance

protected override CheckboxComponentBuilder Instance { get; }

Property Value

CheckboxComponentBuilder

Methods

WithDefaultState(bool)

Sets the DefaultState

public CheckboxComponentBuilder WithDefaultState(bool defaultState)

Parameters

defaultState bool

Default state of the checkbox.

Returns

CheckboxComponentBuilder

The builder instance.