Table of Contents

Class ModalRoleSelectAttribute

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

Marks a IModal property as a role select input.

public class ModalRoleSelectAttribute : ModalSelectComponentAttribute
Inheritance
ModalRoleSelectAttribute
Inherited Members

Constructors

ModalRoleSelectAttribute(string, int, int, int)

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

Parameters

customId string

Custom ID of the role select 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