Constructor DiscordChannelSelectComponent
- Namespace
- DSharpPlus.Entities
- Assembly
- DSharpPlus.dll
DiscordChannelSelectComponent(string, string, IEnumerable<DiscordChannelType>?, bool, int, int)
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)
Parameters
customId
stringThe ID of this component.
placeholder
stringPlaceholder text that's shown when no options are selected.
channelTypes
IEnumerable<DiscordChannelType>Optional channel types to filter by.
disabled
boolWhether this component is disabled.
minOptions
intThe minimum amount of options to be selected.
maxOptions
intThe maximum amount of options to be selected, up to 25.