From 8bc1ece98ea59c90cd40b4935bafb3a523d3eef5 Mon Sep 17 00:00:00 2001 From: Souji Date: Tue, 5 Oct 2021 01:37:04 +0200 Subject: [PATCH] docs: fetchReply info + example (#6753) --- src/structures/interfaces/InteractionResponses.js | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/src/structures/interfaces/InteractionResponses.js b/src/structures/interfaces/InteractionResponses.js index 8a36d8204..5ac5f1287 100644 --- a/src/structures/interfaces/InteractionResponses.js +++ b/src/structures/interfaces/InteractionResponses.js @@ -69,18 +69,19 @@ 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} * @example - * // Reply to the interaction with an embed + * // Reply to the interaction and fetch the response * const embed = new MessageEmbed().setDescription('Pong!'); * - * interaction.reply({ embeds: [embed] }) - * .then(() => console.log('Reply sent.')) + * interaction.reply({ content: 'Pong!', fetchReply: true }) + * .then((message) => console.log(`Reply sent with content ${message.content}`)) * .catch(console.error); * @example - * // Create an ephemeral reply - * interaction.reply({ content: 'Pong!', ephemeral: true }) + * // Create an ephemeral reply with an embed + * interaction.reply({ embeds: [embed], ephemeral: true }) * .then(() => console.log('Reply sent.')) * .catch(console.error); */