• Jobs
  • About Us
  • professionals
    • Home
    • Jobs
    • Courses and challenges
  • business
    • Home
    • Post vacancy
    • Our process
    • Pricing
    • Assessments
    • Payroll
    • Blog
    • Sales
    • Salary Calculator

0

209
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!

almost 3 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

almost 3 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 Our process Sales
Legal
Terms and conditions Privacy policy
© 2025 PeakU Inc. All Rights Reserved.

Andres GPT

Recommend me some offers
I have an error