Class ModalTextDisplayAttribute
- Namespace
- Discord.Interactions
- Assembly
- Discord.Net.Interactions.dll
Marks a IModal property as a text input.
public class ModalTextDisplayAttribute : ModalComponentAttribute
- Inheritance
-
ModalTextDisplayAttribute
- Inherited Members
Constructors
ModalTextDisplayAttribute(string)
Create a new ModalTextInputAttribute.
public ModalTextDisplayAttribute(string content = null)
Parameters
contentstringContent of the text display.
Properties
ComponentType
Gets the type of the component.
public override ComponentType ComponentType { get; }
Property Value
Content
Gets the content of the text display.
public string Content { get; }