Carbon
Core/Classes

Modal

Constructors

Constructor

new Modal(): Modal

Returns

Modal

Properties

PropertyModifierTypeDefault valueDescription
componentspublicRow<BaseModalComponent>[][]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