Table of Contents

Method AddCheckbox

Namespace
DSharpPlus.Entities
Assembly
DSharpPlus.dll

AddCheckbox(DiscordCheckboxComponent, string, string?)

Adds a single-binary-choice checkbox to this modal.

public DiscordModalBuilder AddCheckbox(DiscordCheckboxComponent checkbox, string label, string? description = null)

Parameters

checkbox DiscordCheckboxComponent

The checkbox to add to this modal.

label string

The user-facing label for this checkbox.

description string

An optional description for the checkbox.

Returns

DiscordModalBuilder

The builder instance for chaining.