Constructor DiscordStringSelectComponent
- Namespace
- DisCatSharp.Entities
- Assembly
- DisCatSharp.dll
DiscordStringSelectComponent(string, IEnumerable<DiscordStringSelectComponentOption>, string, int, int, bool)
Constructs a new DiscordStringSelectComponent.
public DiscordStringSelectComponent(string placeholder, IEnumerable<DiscordStringSelectComponentOption> options, string customId = null, int minOptions = 1, int maxOptions = 1, bool disabled = false)
Parameters
placeholder
stringText to show if no option is selected.
options
IEnumerable<DiscordStringSelectComponentOption>Array of options
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.
DiscordStringSelectComponent(string, string, IEnumerable<DiscordStringSelectComponentOption>, string, int, int, bool)
Constructs a new DiscordStringSelectComponent for modals.
public DiscordStringSelectComponent(string label, string placeholder, IEnumerable<DiscordStringSelectComponentOption> options, string customId = null, int minOptions = 1, int maxOptions = 1, bool disabled = false)
Parameters
label
stringMaximum count of selectable options.
placeholder
stringText to show if no option is selected.
options
IEnumerable<DiscordStringSelectComponentOption>Array of options
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.
DiscordStringSelectComponent()
Constructs a new DiscordStringSelectComponent.
public DiscordStringSelectComponent()