Table of Contents

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 string

The custom id of the input.

Properties

ComponentType

Gets the type of the component.

public abstract ComponentType ComponentType { get; }

Property Value

ComponentType

CustomId

Gets the custom id of the text input.

public string CustomId { get; }

Property Value

string