Class ModalChannelSelectAttribute
- Namespace
- Discord.Interactions
- Assembly
- Discord.Net.Interactions.dll
Marks a IModal property as a channel select.
public class ModalChannelSelectAttribute : ModalSelectComponentAttribute
- Inheritance
-
ModalChannelSelectAttribute
- Inherited Members
Constructors
ModalChannelSelectAttribute(string, int, int, int)
Create a new ModalChannelSelectAttribute.
public ModalChannelSelectAttribute(string customId, int minValues = 1, int maxValues = 1, int id = 0)
Parameters
customIdstringCustom ID of the channel select component.
minValuesintThe minimum number of values that can be selected.
maxValuesintThe maximum number of values that can be selected.
idintOptional identifier for the component.
Properties
ComponentType
Gets the type of the component.
public override ComponentType ComponentType { get; }