Table of Contents

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)

public ModalCheckboxGroupOptionAttribute(string label, string value, string description = null, bool defaultState = false)

Parameters

label string

Label of the option.

value string

Value of the option.

description string

Description of the option.

defaultState bool

Whether 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

bool

Description

Gets or sets the description of the option.

public string Description { get; set; }

Property Value

string

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