Set a Discord's Default Emoji in a ButtonBuilder

Hi, I'm trying to set this discord's default emoji in the method setEmoji in a ButtonBuilder, but when sending the component in a reply the error of invalid emoji is shown. As I see I cannot put the emoji's name in the method and I have to put the character given in \:name: anyone know how I can set the emoji by it's name?
4 Replies
d.js toolkit
d.js toolkit14mo 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! - Marked as resolved by OP
PabloRNC
PabloRNCOP14mo ago
Yeah but I wanted a way that omits the Unicode representation only having the name.
duck
duck14mo ago
there is no means of doing that you need to put the unicode representation of the emoji
PabloRNC
PabloRNCOP14mo ago
All right, I'll do that thanks
Want results from more Discord servers?
Add your server