Class ModalInputAttribute
Mark an IModal property as a modal input field.
Namespace: Discord.Interactions
Assembly: Discord.Net.Interactions.dll
Syntax
public abstract class ModalInputAttribute : Attribute
Constructors
| Improve this Doc View SourceModalInputAttribute(String)
Create a new ModalInputAttribute.
Declaration
protected ModalInputAttribute(string customId)
Parameters
Type | Name | Description |
---|---|---|
String | customId | The custom id of the input. |
Properties
| Improve this Doc View SourceComponentType
Gets the type of the component.
Declaration
public abstract ComponentType ComponentType { get; }
Property Value
Type | Description |
---|---|
ComponentType |
CustomId
Gets the custom id of the text input.
Declaration
public string CustomId { get; }
Property Value
Type | Description |
---|---|
String |