Table of Contents

Class SelectMenuComponent

Namespace
Discord
Assembly
Discord.Net.Core.dll
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

IReadOnlyCollection<ChannelType>

CustomId

Gets the custom id of the component if possible; otherwise null.

public string CustomId { get; }

Property Value

string

DefaultValues

Gets default values for auto-populated select menu components.

public IReadOnlyCollection<SelectMenuDefaultValue> DefaultValues { get; }

Property Value

IReadOnlyCollection<SelectMenuDefaultValue>

IsDisabled

Gets whether this menu is disabled or not.

public bool IsDisabled { get; }

Property Value

bool

MaxValues

Gets the maximum number of items that can be chosen.

public int MaxValues { get; }

Property Value

int

MinValues

Gets the minimum number of items that must be chosen.

public int MinValues { get; }

Property Value

int

Options

Gets the menus options to select from.

public IReadOnlyCollection<SelectMenuOption> Options { get; }

Property Value

IReadOnlyCollection<SelectMenuOption>

Placeholder

Gets the custom placeholder text if nothing is selected.

public string Placeholder { get; }

Property Value

string

Type

Gets the ComponentType of this Message Component.

public ComponentType Type { get; }

Property Value

ComponentType

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.