Company logo
  • Jobs
  • Bootcamp
  • About Us
  • For professionals
    • Home
    • Jobs
    • Courses
    • Questions
    • Teachers
    • Bootcamp
  • For business
    • Home
    • Our process
    • Plans
    • Assessments
    • Payroll
    • Blog
    • Calculator

0

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

7 months 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

7 months 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 job Plans Our process Sales
Legal
Terms and conditions Privacy policy
© 2023 PeakU Inc. All Rights Reserved.