Emojis in buttons doesn't work
Code: https://sourceb.in/dCkWGPGOOj
Error is that it says it is a invalid emoji, but it literally worked like 2 days ago
Error:
2 Replies
- 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!it's doubtful that this previously worked given that the name of the emoji is just
upvote
are you sure you weren't previously passing the string directly to setEmoji
?
if you import ButtonBuilder
from discord.js
rather than @discordjs/builders
, it would resolve ![upvote](https://cdn.discordapp.com/emojis/1165259604368822292.png)