Constructor DiscordRoleSelectComponent
- Namespace
- DisCatSharp.Entities
- Assembly
- DisCatSharp.dll
DiscordRoleSelectComponent(string, string, int, int, bool, IEnumerable<DiscordSelectDefaultValue>?, bool?)
Constructs a new DiscordRoleSelectComponent.
public DiscordRoleSelectComponent(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.
DiscordRoleSelectComponent()
Constructs a new DiscordRoleSelectComponent.
public DiscordRoleSelectComponent()