Table of Contents

Constructor DiscordSelectComponent

Namespace
DSharpPlus.Entities
Assembly
DSharpPlus.dll

DiscordSelectComponent(string, string, IEnumerable<DiscordSelectComponentOption>, bool, int, int, bool?)

Creates a new string select component.

public DiscordSelectComponent(string customId, string placeholder, IEnumerable<DiscordSelectComponentOption> options, bool disabled = false, int minOptions = 1, int maxOptions = 1, bool? required = null)

Parameters

customId string

The ID of this component.

placeholder string

Placeholder text that's shown when no options are selected.

options IEnumerable<DiscordSelectComponentOption>

The selectable options for this component.

disabled bool

Whether this component is disabled.

minOptions int

The minimum amount of options to be selected.

maxOptions int

The maximum amount of options to be selected, up to 25.

required bool?

Indicates whether this component, in a modal, requires user input.