Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

245
Vistas
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 Respuestas
Responde la pregunta

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 Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda