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)
Create a new ModalSelectComponentAttribute.
public ModalSelectMenuOptionAttribute(string label, string value, string description = null, string emote = null, bool isDefault = false)
Parameters
labelstringLabel of the option.
valuestringValue of the option.
descriptionstringDescription of the option.
emotestringisDefaultboolWhether the option is selected by default
Properties
Description
Gets or sets the description of the option.
public string Description { get; set; }
Property Value
Emote
Gets or sets the emote of the option.
public string Emote { get; set; }
Property Value
Remarks
IsDefault
Gets or sets whether the option is selected by default.
public bool IsDefault { get; set; }
Property Value
Label
Gets the label of the option.
public string Label { get; }
Property Value
Value
Gets the value of the option.
public string Value { get; }