Table of Contents

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)

public ModalRadioGroupOptionAttribute(string label, string value, string description = null, bool isDefault = false)

Parameters

label string

Label of the option.

value string

Value of the option.

description string

Description of the option.

isDefault bool

Whether the option is selected by default.

Properties

Description

Gets or sets the description of the option.

public string Description { get; set; }

Property Value

string

IsDefault

Gets or sets whether the option is selected by default.

public bool IsDefault { get; set; }

Property Value

bool

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