Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

248
Visualizações
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 Respostas
Responde à pergunta

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 Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda