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 toolkit14mo 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
! MYAOP14mo ago
Mark
Mark14mo ago
you need the actual unicode emoji, not the string you provided ✅ that is the actual unicode
! MYA
! MYAOP14mo ago
ohhhh so those colon discord emojis dont work? Interesting
Mark
Mark14mo ago
not for unicode emojis
! MYA
! MYAOP14mo ago
ohh only for custom?
DuckXYZ
DuckXYZ14mo 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
! MYAOP14mo ago
ohh ty
Want results from more Discord servers?
Add your server