Carbon
CoreClasses

Modal

Constructors

new Modal()

new Modal(): Modal

Returns

Modal

Properties

PropertyModifierTypeDefault valueDescription
componentspublicRow<TextInput>[][]The components of the modal
customIdabstractstringundefinedThe custom ID of the modal
titleabstractstringundefinedThe title of the modal

Methods

run()

abstract run(interaction): Promise<void>

Parameters

ParameterType
interactionModalInteraction

Returns

Promise<void>


serialize()

serialize(): APIModalInteractionResponseCallbackData

Returns

APIModalInteractionResponseCallbackData

On this page

Edit on GitHub