Table of Contents

Constructor DiscordCheckboxGroupComponent

Namespace
DSharpPlus.Entities
Assembly
DSharpPlus.dll

DiscordCheckboxGroupComponent(string, IReadOnlyList<DiscordCheckboxGroupOption>, int?, int?, bool?)

Creates a new checkbox group.

public DiscordCheckboxGroupComponent(string customId, IReadOnlyList<DiscordCheckboxGroupOption> options, int? minValues = null, int? maxValues = null, bool? required = null)

Parameters

customId string

The custom ID of this component.

options IReadOnlyList<DiscordCheckboxGroupOption>

The checkboxes to include within this group, up to 10.

minValues int?

The minimum amount of checkboxes that must be checked within this group, 0-10.

maxValues int?

The maximum amount of checkboxes that may be checked within this group, 1-10.

required bool?

Indicates whether responding to this component is required.