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

286
Views
Discord.js awaitReactions
const filter = (reaction, user) => {
  return (
    ["1️⃣", "2️⃣", "3️⃣", "4️⃣", "5️⃣", "6️⃣"].includes(reaction.emoji.name) &&
    user.id === msg.author.id
  );
};

message
  .awaitReactions({ filter, max: 1, time: 30000, errors: ["time"] })
  .then(async function (collected) {
    const reaction = collected.first();

    console.log(reaction.emoji.name);

    if (reaction.emoji.name === "1️⃣") {
      message.delete();

      msg.reply("Done");
    }
  })
  .catch((collected) => {
    message.delete();
    msg.reply("No response given.");
  });

My Code Above is not working and never firing, I do not know why I looked up on google and they all give out this code. Any Help is Appreciated thanks.

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

The problem was I forgot to use the GUILD_MESSAGE_REACTIONS intent. My Bad.

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!