'I want to add a reaction to my embed but it doesnt really work.... [Discord.js v12.5]
I want to add a reaction to this embed that is automatically sent to a specific channel after a user is done answering some questions. It's a discord application system. I believe I'm doing this right, since I've done this before the same way but now in this exact code, it doesn't work. This is my code :
function send_finished(){
let embed = new Discord.MessageEmbed()
.setColor("#CD8BF2")
.setTitle("💻A new Discord Helper application from: " + user.tag)
.setDescription(`${user}`)
.setFooter(user.tag, user.displayAvatarURL({dynamic:true}))
.setTimestamp()
for(let i = 0; i < config.QUESTIONS.length; i++){
try{
embed.addField(config.QUESTIONS[i], '```' + String(answers[i]).substr(0, 1024) + '```')
}catch{
}
}
channel_tosend.send(embed);
embed.react('✅')
user.send("Thanks for applying to: " + message.guild.name)
}
This is the error i get :
embed.react('✅')
^
TypeError: embed.react is not a function
Any help or actually telling me what the heck I'm doing wrong? 😂
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
