Skip to content

Commit

Permalink
docs(ApplicationEmojiManager): fix fetch example (#10480)
Browse files Browse the repository at this point in the history
* docs(ApplicationEmojiManager): fix fetch example

* docs: requested changes
  • Loading branch information
sdanialraza authored Sep 3, 2024
1 parent a11ff75 commit 4594896
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/discord.js/src/managers/ApplicationEmojiManager.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,12 +65,12 @@ class ApplicationEmojiManager extends CachedManager {
* @returns {Promise<ApplicationEmoji|Collection<Snowflake, ApplicationEmoji>>}
* @example
* // Fetch all emojis from the application
* message.application.emojis.fetch()
* 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')
* application.emojis.fetch('222078108977594368')
* .then(emoji => console.log(`The emoji name is: ${emoji.name}`))
* .catch(console.error);
*/
Expand Down

0 comments on commit 4594896

Please sign in to comment.