Class ModalInputAttribute
- Namespace
- Discord.Interactions
- Assembly
- Discord.Net.Interactions.dll
Mark an IModal property as a modal input field.
[AttributeUsage(AttributeTargets.Property, AllowMultiple = false, Inherited = false)]
public abstract class ModalInputAttribute : Attribute
- Inheritance
-
ModalInputAttribute
- Derived
- Inherited Members
Constructors
ModalInputAttribute(string)
Create a new ModalInputAttribute.
protected ModalInputAttribute(string customId)
Parameters
customId
stringThe custom id of the input.
Properties
ComponentType
Gets the type of the component.
public abstract ComponentType ComponentType { get; }
Property Value
CustomId
Gets the custom id of the text input.
public string CustomId { get; }