mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-11 00:53:31 +01:00
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:
@@ -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) {
|
||||
|
||||
@@ -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}
|
||||
|
||||
Reference in New Issue
Block a user