Table of Contents

Class DiscordCheckboxComponent

Namespace
DisCatSharp.Entities
Assembly
DisCatSharp.dll

Represents a single checkbox component. Modal-only.

public sealed class DiscordCheckboxComponent : DiscordComponent, ILabelComponent
Inheritance
DiscordCheckboxComponent
Implements
Inherited Members

Constructors

DiscordCheckboxComponent(string?, bool?)

Creates a new checkbox component with the provided options.

Properties

CustomId

The custom id for this component.

Default

Whether the checkbox is checked by default.

Value

The submitted value. Present on modal submit interactions.

Methods

WithId(int)

Assigns a unique id to this component.