Reaction Error

let lastNumb = 0;

client.on("messageCreate", msg => {
const num = Number(msg.content)
if (num >= 0) {

if (num == lastNumb + 1) {
msg.react(":white_check_mark:")
lastNumb += 1
} else {
msg.reply(`uh oh we lost it at: ${lastNumb}`)
}


} else if (num < 0) {
msg.reply("invalid number")
}

});
let lastNumb = 0;

client.on("messageCreate", msg => {
const num = Number(msg.content)
if (num >= 0) {

if (num == lastNumb + 1) {
msg.react(":white_check_mark:")
lastNumb += 1
} else {
msg.reply(`uh oh we lost it at: ${lastNumb}`)
}


} else if (num < 0) {
msg.reply("invalid number")
}

});
8 Replies
d.js toolkit
d.js toolkitā€¢7mo 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
Mark
Markā€¢7mo ago
you need the actual unicode emoji, not the string you provided āœ… that is the actual unicode
MYABo55 šŸ˜Ž
MYABo55 šŸ˜Žā€¢7mo ago
ohhhh so those colon discord emojis dont work? Interesting
Mark
Markā€¢7mo ago
not for unicode emojis
MYABo55 šŸ˜Ž
MYABo55 šŸ˜Žā€¢7mo ago
ohh only for custom?
DuckXYZ
DuckXYZā€¢7mo ago
To get what u want to react with put the emoji in a discord chat but with \ before it For example šŸ˜ˆ is šŸ˜ˆ It will just simplify it to what u need to.copy at least for custkm
MYABo55 šŸ˜Ž
MYABo55 šŸ˜Žā€¢7mo ago
ohh ty