From 35c2225f5035fce47b0defc12754bda5901a453c Mon Sep 17 00:00:00 2001 From: Austrian <60128595+AustrianDev@users.noreply.github.com> Date: Wed, 9 Jun 2021 20:33:07 +0200 Subject: [PATCH] docs(Messages): fix examples in messages after changes in #5758 (#5791) --- .../interfaces/InteractionResponses.js | 5 ++++- src/structures/interfaces/TextBasedChannel.js | 17 +++++++++-------- 2 files changed, 13 insertions(+), 9 deletions(-) diff --git a/src/structures/interfaces/InteractionResponses.js b/src/structures/interfaces/InteractionResponses.js index 981db6ee4b4a..6ffd3fd82333 100644 --- a/src/structures/interfaces/InteractionResponses.js +++ b/src/structures/interfaces/InteractionResponses.js @@ -164,7 +164,10 @@ class InteractionResponses { * @returns {Promise} * @example * // Remove the components from the message - * interaction.update("A button was clicked", { components: [] }) + * interaction.update({ + * content: "A button was clicked", + * components: [] + * }) * .then(console.log) * .catch(console.error); */ diff --git a/src/structures/interfaces/TextBasedChannel.js b/src/structures/interfaces/TextBasedChannel.js index 8d5cb198f9f8..34fba43f32b3 100644 --- a/src/structures/interfaces/TextBasedChannel.js +++ b/src/structures/interfaces/TextBasedChannel.js @@ -143,16 +143,17 @@ class TextBasedChannel { * .catch(console.error); * @example * // Send an embed with a local image inside - * channel.send('This is an embed', { + * channel.send({ + * content: 'This is an embed', * embed: { * thumbnail: { - * url: 'attachment://file.jpg' - * } - * }, - * files: [{ - * attachment: 'entire/path/to/file.jpg', - * name: 'file.jpg' - * }] + * url: 'attachment://file.jpg' + * } + * }, + * files: [{ + * attachment: 'entire/path/to/file.jpg', + * name: 'file.jpg' + * }] * }) * .then(console.log) * .catch(console.error);