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
customIdstringThe ID of this component.
placeholderstringPlaceholder text that's shown when no options are selected.
optionsIEnumerable<DiscordSelectComponentOption>The selectable options for this component.
disabledboolWhether this component is disabled.
minOptionsintThe minimum amount of options to be selected.
maxOptionsintThe maximum amount of options to be selected, up to 25.
requiredbool?Indicates whether this component, in a modal, requires user input.