CoreClasses
Modal
Constructors
new Modal()
new Modal():
Modal
Returns
Properties
Property | Modifier | Type | Default value | Description |
---|---|---|---|---|
components | public | Row <TextInput >[] | [] | The components of the modal |
customId | abstract | string | undefined | The custom ID of the modal |
title | abstract | string | undefined | The title of the modal |
Methods
run()
abstract
run(interaction
):Promise
<void
>
Parameters
Parameter | Type |
---|---|
interaction | ModalInteraction |
Returns
Promise
<void
>
serialize()
serialize():
APIModalInteractionResponseCallbackData
Returns
APIModalInteractionResponseCallbackData