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 docs2y 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
monbrey2y ago
try just using .setEmoji("102...") or .setEmoji({ id: "102.." }) if the first doesnt work
NP
NP2y ago
Doesn't work :(
NP
NP2y 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
monbrey2y ago
Well then, not the correct emoji id no
NP
NP2y ago
monbrey
monbrey2y ago
Yeah thats probably the message ID
d.js docs
d.js docs2y 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
NP2y ago
ooo that worked! tysm