Table of Contents

Class ModalCheckboxGroupAttribute

Namespace
Discord.Interactions
Assembly
Discord.Net.Interactions.dll

Marks a IModal property as a checkbox group input.

[AttributeUsage(AttributeTargets.Property, AllowMultiple = false, Inherited = true)]
public class ModalCheckboxGroupAttribute : ModalInputAttribute
Inheritance
ModalCheckboxGroupAttribute
Inherited Members

Constructors

ModalCheckboxGroupAttribute(string, int, int, int)

public ModalCheckboxGroupAttribute(string customId, int minValues = 1, int maxValues = 1, int id = 0)

Parameters

customId string

Custom ID of the select menu component.

minValues int

Minimum number of values that can be selected.

maxValues int

Maximum number of values that can be selected.

id int

The optional identifier for the component.

Properties

ComponentType

Gets the type of the component.

public override ComponentType ComponentType { get; }

Property Value

ComponentType

MaxValues

Gets or sets the maximum number of values that can be selected.

public int MaxValues { get; set; }

Property Value

int

MinValues

Gets or sets the minimum number of values that can be selected.

public int MinValues { get; set; }

Property Value

int