Working with Emoji's on SelectMenu Options
Hi iam trying to set an emoji to a StringSelectMenu but i doesnt show the emoji itself.
Solution:Jump to solution
Use
.setEmoji
to set an emoji
https://discord.js.org/docs/packages/builders/1.7.0/StringSelectMenuOptionBuilder:Class#setEmoji...discord.js
discord.js
discord.js is a powerful Node.js module that allows you to interact with the Discord API very easily. It takes a much more object-oriented approach than most other JS Discord libraries, making your bot's code significantly tidier and easier to comprehend.
5 Replies
Solution
Use
.setEmoji
to set an emoji
https://discord.js.org/docs/packages/builders/1.7.0/StringSelectMenuOptionBuilder:Class#setEmojidiscord.js
discord.js
discord.js is a powerful Node.js module that allows you to interact with the Discord API very easily. It takes a much more object-oriented approach than most other JS Discord libraries, making your bot's code significantly tidier and easier to comprehend.
Ahh
thanks
didnt saw that
but can i set an emoji to thhe placeholder?
and does it work with custom emojis?
i dont think so and yes it works with custom emojis
For placeholder you probably need to use unicode emojis like this one 😄
Maybe custom emojis will work too if you place them as ID. <:name:id>