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

155
Views
How to create multiple reactions?

So I was making this media channel where you could send media, and reactions would pop up, from really happy about it to really sad/angry about it. Here's my code:

client.on('message', message => {
  if (message.channel.name === "๐Ÿ˜‚media") {
      message.react('๐Ÿคฃ')
          .then(() => { 
              message.react('๐Ÿ˜‚')
          });{ 
          };
  }
  if (message.channel.name === "๐Ÿ˜‚media") {
      message.react('๐Ÿ™‚')
          .then(() => { 
              message.react('๐Ÿ˜')
          });{ 
          };
  }
  if (message.channel.name === "๐Ÿ˜‚media") {
     message.react('๐Ÿคฉ')
         .then(() => { 
            message.react('๐Ÿ˜ข')
        });{ 
        };
  }
  if (message.channel.name === "๐Ÿ˜‚media") {
     message.react('๐Ÿ˜ญ')
         .then(() => { 
            message.react('๐Ÿ˜ข')
        });{ 
        };
  }
});

Can someone possibly tell me what I am doing wrong? Thanks.

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

0

From https://stackoverflow.com/users/13685706/toasty Toasty

The correction was to change client.on('message', to client.on('messageCreate',

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!