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

246
Views
I'm making a command, and i want to put one "more info button" with a reaction in discordjs

see, in the end of my command, I have this:

const awnserEmb = await message.channel.send({ embeds: [exampleEmbed] });
            (awnserEmb).react('❓')

        const filter = (reaction, user) => {
            return (
                ['❓'].includes(reaction.emoji.name) && user.id === message.author.id);
        };

        awnserEmb
            .awaitReactions(filter, { max: 1, time: 60000, errors: ['time'] })
            .then((collected) => {
                const reaction = collected.first();

                if(reaction.emoji.name === '❓'){
                    message.channel.send('Mais informação')
                }
            })
            .catch((collected) => {
                message.channel.send('nada aconteceu');
            });

but doesn't work! says that awaitReactions is not a function!

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

0

Reactions for the use you want are deprecated in v13 unless you have privileged intents turned on

So I recommend the following

You can try the new Interactive Buttons or Menus

If you don't want to update to v13 (you will have to) Use a Reaction Collection

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!