From 3de185c310bb73fe45da15adfe04832a4e71f9dc Mon Sep 17 00:00:00 2001 From: Danial Raza Date: Tue, 3 Sep 2024 21:51:49 +0000 Subject: [PATCH 1/2] docs(ApplicationEmojiManager): fix fetch example --- packages/discord.js/src/managers/ApplicationEmojiManager.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/discord.js/src/managers/ApplicationEmojiManager.js b/packages/discord.js/src/managers/ApplicationEmojiManager.js index 22e1d7c1a7cb..da2c707299ad 100644 --- a/packages/discord.js/src/managers/ApplicationEmojiManager.js +++ b/packages/discord.js/src/managers/ApplicationEmojiManager.js @@ -65,12 +65,12 @@ class ApplicationEmojiManager extends CachedManager { * @returns {Promise>} * @example * // Fetch all emojis from the application - * message.application.emojis.fetch() + * message.client.application.emojis.fetch() * .then(emojis => console.log(`There are ${emojis.size} emojis.`)) * .catch(console.error); * @example * // Fetch a single emoji - * message.application.emojis.fetch('222078108977594368') + * message.client.application.emojis.fetch('222078108977594368') * .then(emoji => console.log(`The emoji name is: ${emoji.name}`)) * .catch(console.error); */ From 96ae8fe6d5613dc9c9904bf691b9461f4d029280 Mon Sep 17 00:00:00 2001 From: Danial Raza Date: Tue, 3 Sep 2024 22:09:15 +0000 Subject: [PATCH 2/2] docs: requested changes --- packages/discord.js/src/managers/ApplicationEmojiManager.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/discord.js/src/managers/ApplicationEmojiManager.js b/packages/discord.js/src/managers/ApplicationEmojiManager.js index da2c707299ad..d53ee2fb1abc 100644 --- a/packages/discord.js/src/managers/ApplicationEmojiManager.js +++ b/packages/discord.js/src/managers/ApplicationEmojiManager.js @@ -65,12 +65,12 @@ class ApplicationEmojiManager extends CachedManager { * @returns {Promise>} * @example * // Fetch all emojis from the application - * message.client.application.emojis.fetch() + * application.emojis.fetch() * .then(emojis => console.log(`There are ${emojis.size} emojis.`)) * .catch(console.error); * @example * // Fetch a single emoji - * message.client.application.emojis.fetch('222078108977594368') + * application.emojis.fetch('222078108977594368') * .then(emoji => console.log(`The emoji name is: ${emoji.name}`)) * .catch(console.error); */