Constructor DiscordUserSelectComponent
- Namespace
- DisCatSharp.Entities
- Assembly
- DisCatSharp.dll
DiscordUserSelectComponent(string, string, int, int, bool, IEnumerable<DiscordSelectDefaultValue>?, bool?)
Constructs a new DiscordUserSelectComponent.
public DiscordUserSelectComponent(string placeholder, string customId = null, int minOptions = 1, int maxOptions = 1, bool disabled = false, IEnumerable<DiscordSelectDefaultValue>? defaultValues = null, bool? required = null)
Parameters
placeholderstringText to show if no option is selected.
customIdstringThe Id to assign to the select component.
minOptionsintMinimum count of selectable options.
maxOptionsintMaximum count of selectable options.
disabledboolWhether this select component should be initialized as being disabled. User sees a greyed out select component that cannot be interacted with.
defaultValuesIEnumerable<DiscordSelectDefaultValue>The default values of this select menu.
requiredbool?Whether this select component is required. Applicable for Modals.
DiscordUserSelectComponent()
Constructs a new DiscordUserSelectComponent.
public DiscordUserSelectComponent()