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