Class ModalRadioGroupOptionAttribute
- Namespace
- Discord.Interactions
- Assembly
- Discord.Net.Interactions.dll
Adds a radio group option to the marked field.
[AttributeUsage(AttributeTargets.Property, AllowMultiple = true)]
public class ModalRadioGroupOptionAttribute : Attribute
- Inheritance
-
ModalRadioGroupOptionAttribute
- Inherited Members
Remarks
To add additional metadata to enum fields, use EnumOptionAttribute instead.
Constructors
ModalRadioGroupOptionAttribute(string, string, string, bool)
Create a new ModalRadioGroupOptionAttribute.
public ModalRadioGroupOptionAttribute(string label, string value, string description = null, bool isDefault = false)
Parameters
labelstringLabel of the option.
valuestringValue of the option.
descriptionstringDescription of the option.
isDefaultboolWhether the option is selected by default.
Properties
Description
Gets or sets the description of the option.
public string Description { get; set; }
Property Value
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; }