Table of Contents

Class SelectMenuOptionAttribute

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

Adds additional metadata to enum fields that are used for select-menus.

[AttributeUsage(AttributeTargets.Field, AllowMultiple = false)]
public class SelectMenuOptionAttribute : Attribute
Inheritance
SelectMenuOptionAttribute
Inherited Members

Remarks

To manually add select menu options to modal components, use ModalSelectMenuOptionAttribute instead.

Properties

Description

Gets or sets the desription 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