Adding Application Emojis

Is this possible that when my client gets ready I can check if my Bot has these specific Application emojis if it won't am I able to upload them via their url to the application and get back that emoji id?
4 Replies
d.js toolkit
d.js toolkit2w ago
d.js docs
d.js docs2w ago
:method: ApplicationEmojiManager#fetch() discord.js@14.24.2 Obtains one or more emojis from Discord, or the emoji cache if they're already available.
// Fetch all emojis from the application
application.emojis.fetch()
.then(emojis => console.log(`There are ${emojis.size} emojis.`))
.catch(console.error);
// Fetch all emojis from the application
application.emojis.fetch()
.then(emojis => console.log(`There are ${emojis.size} emojis.`))
.catch(console.error);
Samtino
Samtino2w ago
that will return a Collection of all application emoji you have key'd by their ID you can then check if they exist compared to a local ID list
d.js toolkit
d.js toolkit2w ago
The thread owner has marked this issue as solved.

Did you find this page helpful?