Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

195
Views
message.react is not a function Duscord.JS

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

about 4 years ago ยท Juan Pablo Isaza
1 answers
Answer question

0

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('๐Ÿ•Š๏ธ')
    }
})
about 4 years ago ยท Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
ยฉ 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!