mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-18 20:43:30 +01:00
docs(InteractionResponses): Add showModal() return type (#8376)
This commit is contained in:
@@ -238,6 +238,7 @@ class InteractionResponses {
|
|||||||
/**
|
/**
|
||||||
* Shows a modal component
|
* Shows a modal component
|
||||||
* @param {APIModal|ModalData|Modal} modal The modal to show
|
* @param {APIModal|ModalData|Modal} modal The modal to show
|
||||||
|
* @returns {Promise<void>}
|
||||||
*/
|
*/
|
||||||
async showModal(modal) {
|
async showModal(modal) {
|
||||||
if (this.deferred || this.replied) throw new Error(ErrorCodes.InteractionAlreadyReplied);
|
if (this.deferred || this.replied) throw new Error(ErrorCodes.InteractionAlreadyReplied);
|
||||||
|
|||||||
Reference in New Issue
Block a user