docs(InteractionResponses): showModal docs change (#9434)

* Update InteractionResponses.js

Update the parameters for the showModal method

* Update APITypes.js

Add APIModalInteractionResponseCallbackData link for docs link for showModal method

* Update InteractionResponses.js

Change the order of parameters so the ModalBuilder is listed first

* Update APITypes.js

Disable the ESline line length rule for the APITypes file

* Update InteractionResponses.js

Add ModalComponentData to the JSDoc, it was omitted before.
This commit is contained in:
anandre
2023-04-21 03:17:44 -05:00
committed by GitHub
parent b49c5c9f48
commit 7d341000d4
2 changed files with 8 additions and 1 deletions

View File

@@ -245,7 +245,7 @@ class InteractionResponses {
/**
* Shows a modal component
* @param {APIModal|ModalData|Modal} modal The modal to show
* @param {ModalBuilder|ModalComponentData|APIModalInteractionResponseCallbackData} modal The modal to show
* @returns {Promise<void>}
*/
async showModal(modal) {

View File

@@ -1,3 +1,5 @@
/* eslint-disable max-len */
/**
* @external ActivityFlags
* @see {@link https://discord-api-types.dev/api/discord-api-types-v10/enum/ActivityFlags}
@@ -133,6 +135,11 @@
* @see {@link https://discord-api-types.dev/api/discord-api-types-v10/interface/APIModalInteractionResponse}
*/
/**
* @external APIModalInteractionResponseCallbackData
* @see {@link https://discord-api-types.dev/api/discord-api-types-v10/interface/APIModalInteractionResponseCallbackData}
*/
/**
* @external APIModalComponent
* @see {@link https://discord-api-types.dev/api/discord-api-types-v10#APIModalComponent}