Table of Contents

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)

public ModalTextDisplayAttribute(string content = null)

Parameters

content string

Content of the text display.

Properties

ComponentType

Gets the type of the component.

public override ComponentType ComponentType { get; }

Property Value

ComponentType

Content

Gets the content of the text display.

public string Content { get; }

Property Value

string