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