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ā€¢13mo 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
! MYA
! MYAOPā€¢13mo ago
Mark
Markā€¢13mo ago
you need the actual unicode emoji, not the string you provided āœ… that is the actual unicode
! MYA
! MYAOPā€¢13mo ago
ohhhh so those colon discord emojis dont work? Interesting
Mark
Markā€¢13mo ago
not for unicode emojis
! MYA
! MYAOPā€¢13mo ago
ohh only for custom?
DuckXYZ
DuckXYZā€¢13mo 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
! MYA
! MYAOPā€¢13mo ago
ohh ty
Want results from more Discord servers?
Add your server