Table of Contents

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)

public ModalCheckboxAttribute(string customId, int id = 0)

Parameters

customId string

Custom ID of the select menu component.

id int

The optional identifier for the component.

Properties

ComponentType

Gets the type of the component.

public override ComponentType ComponentType { get; }

Property Value

ComponentType