Add custom emoji to button

I get id is not defined error when adding a custom emoji to a button. Please help
9 Replies
d.js docs
d.js docs3y ago
• What's your exact discord.js npm list discord.js and node node -v version? • Post the full error stack trace, not just the top part! • Show your code! • Explain what exactly your issue is. • Not a discord.js issue? Check out #useful-servers.
monbrey
monbrey3y ago
try just using .setEmoji("102...") or .setEmoji({ id: "102.." }) if the first doesnt work
NP
NPOP3y ago
Doesn't work :(
NP
NPOP3y ago
Could it be because i am using
"discord.js": "^14.0.0-dev.1649160496-402514f",
"discord.js": "^14.0.0-dev.1649160496-402514f",
monbrey
monbrey3y ago
Well then, not the correct emoji id no
NP
NPOP3y ago
monbrey
monbrey3y ago
Yeah thats probably the message ID
d.js docs
d.js docs3y ago
• Custom emojis: \:name:<a:name:id> • Twemojis: \:name: ➞ unicode representation • Emoji picker: WIN + . / CMD + CTRL + SPACE / CTRL + . • Right-clicking any emoji will not copy its id!
NP
NPOP3y ago
ooo that worked! tysm
Want results from more Discord servers?
Add your server