I want to just make a message reaction, I am using discord.js v12.5.3:
client.on('message', function(msg){
if(msg.content.startsWith('frozen')){
msg.react('๐๏ธ')
}
})
the error:
msg.react('๐๏ธ')
^
TypeError: msg.react is not a function
at C:\Users\Sans\Desktop\new crow\commands\rolemenu.js:132:5
at processTicksAndRejections (node:internal/process/task_queues:96:5)
The message don't make a reaction
Try changing your event code to this. Worked for me when I tested it.
client.on('message', async msg => {
if (msg.content.startsWith('frozen')) {
msg.react('๐๏ธ')
}
})