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