mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-19 04:53:30 +01:00
docs(ApplicationEmojiManager): fix fetch example (#10480)
* docs(ApplicationEmojiManager): fix fetch example * docs: requested changes
This commit is contained in:
@@ -65,12 +65,12 @@ class ApplicationEmojiManager extends CachedManager {
|
|||||||
* @returns {Promise<ApplicationEmoji|Collection<Snowflake, ApplicationEmoji>>}
|
* @returns {Promise<ApplicationEmoji|Collection<Snowflake, ApplicationEmoji>>}
|
||||||
* @example
|
* @example
|
||||||
* // Fetch all emojis from the application
|
* // Fetch all emojis from the application
|
||||||
* message.application.emojis.fetch()
|
* application.emojis.fetch()
|
||||||
* .then(emojis => console.log(`There are ${emojis.size} emojis.`))
|
* .then(emojis => console.log(`There are ${emojis.size} emojis.`))
|
||||||
* .catch(console.error);
|
* .catch(console.error);
|
||||||
* @example
|
* @example
|
||||||
* // Fetch a single emoji
|
* // Fetch a single emoji
|
||||||
* message.application.emojis.fetch('222078108977594368')
|
* application.emojis.fetch('222078108977594368')
|
||||||
* .then(emoji => console.log(`The emoji name is: ${emoji.name}`))
|
* .then(emoji => console.log(`The emoji name is: ${emoji.name}`))
|
||||||
* .catch(console.error);
|
* .catch(console.error);
|
||||||
*/
|
*/
|
||||||
|
|||||||
Reference in New Issue
Block a user