Class ModalCheckboxAttribute
- Namespace
- Discord.Interactions
- Assembly
- Discord.Net.Interactions.dll
Marks a IModal property as a checkbox input.
[AttributeUsage(AttributeTargets.Property, AllowMultiple = false, Inherited = true)]
public class ModalCheckboxAttribute : ModalInputAttribute
- Inheritance
-
ModalCheckboxAttribute
- Inherited Members
Constructors
ModalCheckboxAttribute(string, int)
Create a new ModalCheckboxGroupAttribute.
public ModalCheckboxAttribute(string customId, int id = 0)
Parameters
customIdstringCustom ID of the select menu component.
idintThe optional identifier for the component.
Properties
ComponentType
Gets the type of the component.
public override ComponentType ComponentType { get; }