Constructor DiscordChannelSelectComponent
- Namespace
- DSharpPlus.Entities
- Assembly
- DSharpPlus.dll
DiscordChannelSelectComponent(string, string, IEnumerable<DiscordChannelType>?, bool, int, int, bool?)
Creates a new channel select component.
public DiscordChannelSelectComponent(string customId, string placeholder, IEnumerable<DiscordChannelType>? channelTypes = null, 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.
channelTypesIEnumerable<DiscordChannelType>Optional channel types to filter by.
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.