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)
Create a new ModalCheckboxGroupAttribute.
public ModalCheckboxGroupAttribute(string customId, int minValues = 1, int maxValues = 1, int id = 0)
Parameters
customIdstringCustom ID of the select menu component.
minValuesintMinimum number of values that can be selected.
maxValuesintMaximum number of values that can be selected.
idintThe optional identifier for the component.
Properties
ComponentType
Gets the type of the component.
public override ComponentType ComponentType { get; }
Property Value
MaxValues
Gets or sets the maximum number of values that can be selected.
public int MaxValues { get; set; }
Property Value
MinValues
Gets or sets the minimum number of values that can be selected.
public int MinValues { get; set; }