Table of Contents

Class ModalSelectMenuOptionAttribute

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

Adds a select menu option to the marked field.

[AttributeUsage(AttributeTargets.Property, AllowMultiple = true)]
public class ModalSelectMenuOptionAttribute : Attribute
Inheritance
ModalSelectMenuOptionAttribute
Inherited Members

Remarks

To add additional metadata to enum fields, use SelectMenuOptionAttribute instead.

Constructors

ModalSelectMenuOptionAttribute(string, string, string, string, bool)

public ModalSelectMenuOptionAttribute(string label, string value, string description = null, string emote = null, bool isDefault = false)

Parameters

label string

Label of the option.

value string

Value of the option.

description string

Description of the option.

emote string

Emote of the option. Can be either an Emoji or an Emote

isDefault bool

Whether the option is selected by default

Properties

Description

Gets or sets the description of the option.

public string Description { get; set; }

Property Value

string

Emote

Gets or sets the emote of the option.

public string Emote { get; set; }

Property Value

string

Remarks

Can be either an Emoji or an Emote

IsDefault

Gets or sets whether the option is selected by default.

public bool IsDefault { get; set; }

Property Value

bool

Label

Gets the label of the option.

public string Label { get; }

Property Value

string

Value

Gets the value of the option.

public string Value { get; }

Property Value

string