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