Modal
Modal
A modal message with components.
Kind: global class
new Modal(data)
Param | Type | Description |
---|---|---|
data | Object | The data for the modal message. |
data.title | string | The title of the modal. |
data.custom_id | string | The custom ID of the modal. |
modal.addComponents(…components) ⇒ Modal
Adds one or more components to the modal.
Kind: instance method of Modal
Returns: Modal
- This modal instance.
Param | Type | Description |
---|---|---|
…components | Array.<Object> | The components to add. |
modal.toJSON() ⇒ Object
Returns a JSON representation of the modal.
Kind: instance method of Modal
Returns: Object
- The JSON representation of the modal.