Constructor DiscordChannelSelectComponent
- Namespace
- DisCatSharp.Entities
- Assembly
- DisCatSharp.dll
DiscordChannelSelectComponent(string, IEnumerable<ChannelType>, string, int, int, bool, IEnumerable<DiscordSelectDefaultValue>?)
Constructs a new DiscordChannelSelectComponent.
public DiscordChannelSelectComponent(string placeholder, IEnumerable<ChannelType> channelTypes = null, string customId = null, int minOptions = 1, int maxOptions = 1, bool disabled = false, IEnumerable<DiscordSelectDefaultValue>? defaultValues = null)
Parameters
placeholder
stringText to show if no option is selected.
channelTypes
IEnumerable<ChannelType>The channel types to filter by.
customId
stringThe Id to assign to the select component.
minOptions
intMinimum count of selectable options.
maxOptions
intMaximum count of selectable options.
disabled
boolWhether this select component should be initialized as being disabled. User sees a greyed out select component that cannot be interacted with.
defaultValues
IEnumerable<DiscordSelectDefaultValue>The default values of this select menu.
DiscordChannelSelectComponent(string, string, IEnumerable<ChannelType>, string, int, int, bool, IEnumerable<DiscordSelectDefaultValue>?)
Constructs a new DiscordChannelSelectComponent for modals.
public DiscordChannelSelectComponent(string label, string placeholder, IEnumerable<ChannelType> channelTypes = null, string customId = null, int minOptions = 1, int maxOptions = 1, bool disabled = false, IEnumerable<DiscordSelectDefaultValue>? defaultValues = null)
Parameters
label
stringMaximum count of selectable options.
placeholder
stringText to show if no option is selected.
channelTypes
IEnumerable<ChannelType>The channel types to filter by.
customId
stringThe Id to assign to the select component.
minOptions
intMinimum count of selectable options.
maxOptions
intMaximum count of selectable options.
disabled
boolWhether this select component should be initialized as being disabled. User sees a greyed out select component that cannot be interacted with.
defaultValues
IEnumerable<DiscordSelectDefaultValue>The default values of this select menu.
DiscordChannelSelectComponent()
Constructs a new DiscordChannelSelectComponent.
public DiscordChannelSelectComponent()