Table of Contents

Constructor DiscordCheckboxGroupComponent

Namespace
DisCatSharp.Entities
Assembly
DisCatSharp.dll

DiscordCheckboxGroupComponent(IEnumerable<DiscordCheckboxGroupComponentOption>, string?, int?, int?, bool?)

Creates a new checkbox group component with the provided options.

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

Parameters

options IEnumerable<DiscordCheckboxGroupComponentOption>

The selectable options. Must contain between 1 and 10 entries.

customId string

The custom id for this component.

minValues int?

The minimum number of selections. Defaults to 1.

maxValues int?

The maximum number of selections. Defaults to the number of options.

required bool?

Whether a selection is required.