From f1ac17c961cf95d99e205133605d10d8be5bd737 Mon Sep 17 00:00:00 2001 From: pat <73502164+nyapat@users.noreply.github.com> Date: Tue, 21 Jun 2022 07:35:33 -0500 Subject: [PATCH] docs(InteractionResponse): fix return (#8141) --- .../structures/interfaces/InteractionResponses.js | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/packages/discord.js/src/structures/interfaces/InteractionResponses.js b/packages/discord.js/src/structures/interfaces/InteractionResponses.js index 829c00533..e1fc4a9a0 100644 --- a/packages/discord.js/src/structures/interfaces/InteractionResponses.js +++ b/packages/discord.js/src/structures/interfaces/InteractionResponses.js @@ -50,7 +50,7 @@ class InteractionResponses { /** * Defers the reply to this interaction. * @param {InteractionDeferReplyOptions} [options] Options for deferring the reply to this interaction - * @returns {Promise} + * @returns {Promise} * @example * // Defer the reply to this interaction * interaction.deferReply() @@ -83,7 +83,7 @@ class InteractionResponses { * Creates a reply to this interaction. * Use the `fetchReply` option to get the bot's reply message. * @param {string|MessagePayload|InteractionReplyOptions} options The options for the reply - * @returns {Promise} + * @returns {Promise} * @example * // Reply to the interaction and fetch the response * interaction.reply({ content: 'Pong!', fetchReply: true }) @@ -123,7 +123,7 @@ class InteractionResponses { /** * Fetches the initial reply to this interaction. * @see Webhook#fetchMessage - * @returns {Promise} + * @returns {Promise} * @example * // Fetch the reply to this interaction * interaction.fetchReply() @@ -138,7 +138,7 @@ class InteractionResponses { * Edits the initial reply to this interaction. * @see Webhook#editMessage * @param {string|MessagePayload|WebhookEditMessageOptions} options The new options for the message - * @returns {Promise} + * @returns {Promise} * @example * // Edit the reply to this interaction * interaction.editReply('New content') @@ -170,7 +170,7 @@ class InteractionResponses { /** * Send a follow-up message to this interaction. * @param {string|MessagePayload|InteractionReplyOptions} options The options for the reply - * @returns {Promise} + * @returns {Promise} */ followUp(options) { if (!this.deferred && !this.replied) return Promise.reject(new Error(ErrorCodes.InteractionNotReplied)); @@ -180,7 +180,7 @@ class InteractionResponses { /** * Defers an update to the message to which the component was attached. * @param {InteractionDeferUpdateOptions} [options] Options for deferring the update to this interaction - * @returns {Promise} + * @returns {Promise} * @example * // Defer updating and reset the component's loading state * interaction.deferUpdate() @@ -203,7 +203,7 @@ class InteractionResponses { /** * Updates the original message of the component on which the interaction was received on. * @param {string|MessagePayload|InteractionUpdateOptions} options The options for the updated message - * @returns {Promise} + * @returns {Promise} * @example * // Remove the components from the message * interaction.update({