Table of Contents

Class ModalSelectMenuAttribute

Namespace
Discord.Interactions
Assembly
Discord.Net.Interactions.dll

Marks a IModal property as a select menu input.

public sealed class ModalSelectMenuAttribute : ModalSelectComponentAttribute
Inheritance
ModalSelectMenuAttribute
Inherited Members

Constructors

ModalSelectMenuAttribute(string, int, int)

public ModalSelectMenuAttribute(string customId, int minValues = 1, int maxValues = 1)

Parameters

customId string

Custom ID of the select menu component.

minValues int

Minimum number of values that can be selected.

maxValues int

Maximum number of values that can be selected.

Properties

ComponentType

Gets the type of the component.

public override ComponentType ComponentType { get; }

Property Value

ComponentType