Class DiscordCheckboxComponent
- Namespace
- DSharpPlus.Entities
- Assembly
- DSharpPlus.dll
Represents a single checkbox for a binary choice. Only available in modals.
public class DiscordCheckboxComponent : DiscordComponent
- Inheritance
-
DiscordCheckboxComponent
- Inherited Members
Remarks
This component cannot be marked as required. To create a checkbox that must be checked for submitting a modal, use a
DiscordCheckboxGroupComponent with one option and the minValues parameter set to 1.
Constructors
- DiscordCheckboxComponent(string, bool?)
Creates a new checkbox component.
Properties
- SelectedByDefault
Indicates whether this checkbox is selected by default. Defaults to false.