Solo quiero hacer una reacción de mensaje, estoy usando discord.js v12.5.3:
client.on('message', function(msg){ if(msg.content.startsWith('frozen')){ msg.react('🕊️') } })el 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)El mensaje no hace una reacción.
Intente cambiar su código de evento a esto. Me funcionó cuando lo probé.
client.on('message', async msg => { if (msg.content.startsWith('frozen')) { msg.react('🕊️') } })