Looking for information about "managed" emojis.

Hello. I am developing a bot for my server, and this bot needs certain emojis to be always available, in case the server loses boost status. Since discord doesn't provide a way to re-order you emojis, if you want to achieve that you have to delete all server emojis and reupload them in correct order (bot emojis being uploaded first). Either way, while doing a research on this topic I stumbled upon the concept of "managed" emojis, but the documentation about it seems very limited, I can't find much info online about it either. This is what ChatGPT told me about them:
Managed emojis are custom emojis that are added by a bot or an integration, such as Twitch or YouTube. They cannot be deleted or edited by the server owner or anyone with the Manage Emoji permission.
Based on this, my understanding is that I can have emojis that are related to my bot rather than a specific server, which would be ideal for my case. However, I can't seem to find any information on how to upload/use these so called "managed" emojis, so this is what I'm asking for. Any info would be appreciated, thanks!
6 Replies
d.js toolkit
d.js toolkit11mo ago
- What's your exact discord.js npm list discord.js and node node -v version? - Not a discord.js issue? Check out #other-js-ts. - Consider reading #how-to-get-help to improve your question! - Explain what exactly your issue is. - Post the full error stack trace, not just the top part! - Show your code! - Issue solved? Press the button!
Syjalo
Syjalo11mo ago
I'm not sure if bots can create managed emojis. You can create a development server, invite your bot there and use emojis from there. But the bot should have Use external emojis permission enabled for normal messages and the same permission on everyone role for webhook messages (such as interaction responses).
decho
decho11mo ago
ah, so you're saying i can use my dev server to "host" my emojis there, and the bot can use those emoji ids in the production server but im afraid i don't have nitro on the bot
Syjalo
Syjalo11mo ago
Bots aren't normal users. They don't need/have Nitro
decho
decho11mo ago
wow ok, this actually worked. thanks a lot, this actually solves quite an annoying problem for me. cheers ❤️
decho
decho11mo ago
(this is an external emoji)