Table of Contents

Interface IModalSubmission

Namespace
DSharpPlus.EventArgs
Assembly
DSharpPlus.dll

Represents the values submitted to a component from a modal. Cast this object to a typed *ModalSubmission to access the submitted data. The helpers As<T>() and Is<T>() are provided for checking and retrieving the exact ModalSubmission.

public interface IModalSubmission

Properties

ComponentType

The type of component this submission represents. Use As<T>() to cast this object accordingly to access the submitted data.

CustomId

The custom ID of this component.

Methods

As<T>()

Casts this modal submission to its concrete type.

Is<T>()

Checks whether this modal submission is of the specified concrete type.