Class SelectMenuComponent
Represents a select menu component defined at https://discord.com/developers/docs/interactions/message-components#select-menu-object
Assembly: Discord.Net.Core.dll​
View Source​
Declaration
public class SelectMenuComponent : IMessageComponent
Properties​
Type​
Gets the Discord.ComponentType of this Message Component.
View Source​
Declaration
public ComponentType Type { get; }
CustomId​
Gets the custom id of the component if possible; otherwise null
.
View Source​
Declaration
public string CustomId { get; }
Options​
Gets the menus options to select from.
View Source​
Declaration
public IReadOnlyCollection<SelectMenuOption> Options { get; }
Placeholder​
Gets the custom placeholder text if nothing is selected.
View Source​
Declaration
public string Placeholder { get; }
MinValues​
Gets the minimum number of items that must be chosen.
View Source​
Declaration
public int MinValues { get; }
MaxValues​
Gets the maximum number of items that can be chosen.
View Source​
Declaration
public int MaxValues { get; }
IsDisabled​
Gets whether this menu is disabled or not.
View Source​
Declaration
public bool IsDisabled { get; }
Methods​
ToBuilder()​
Turns this select menu into a builder.
View Source​
Declaration
public SelectMenuBuilder ToBuilder()
Returns​
Discord.SelectMenuBuilder: A newly create builder with the same properties as this select menu.