ModalInteraction

The modal interaction class.

Constructor

new ModalInteraction(client, manager, data)

The constructor of the modal interaction class.

Parameters:
NameTypeDescription
clientClient

The client

managerModalInteractionManager

The modal interaction manager

dataModalInteractionData

The data of the modal interaction

Members

components

The components of the modal

manager :ModalInteractionManager

The modal interaction manager

title

The title of the modal

Methods

buildModal() → {ModalBuilder|DisGroupDevError}

Builds the modal

Returns:
Type: 
ModalBuilder | DisGroupDevError

load() → {Promise.<(Boolean|DisGroupDevError)>}

Reloads the modal interaction

Returns:
Type: 
Promise.<(Boolean|DisGroupDevError)>

reload() → {Promise.<(Boolean|DisGroupDevError)>}

Reloads the modal interaction

Returns:
Type: 
Promise.<(Boolean|DisGroupDevError)>

unload() → {Promise.<(Boolean|DisGroupDevError)>}

Unloads the modal interaction

Returns:
Type: 
Promise.<(Boolean|DisGroupDevError)>