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

240
Visualizações
Discord.js react to all messages in channel

I’m trying to create a bot that should react with 👍 and 👎 to all messages sent in a specific channel.

I’ve watched tutorials on youtube and google, but nothing has worked so I must be missing something.

I’m currently on my phone - so I am unable to share my code as well as images atm. Though I can tell you that I have all handlers and commands in separate files and folders.

about 4 years ago · Juan Pablo Isaza
1 Respostas
Responde à pergunta

0

This should serve your purposes:

Discord v12

client.on('message', async message => {
    if (message.channel.id === 'channelId') {
        if (message.member.user.bot) return
        message.react('👍').then(() => {
            message.react('👎')
        })
    }
})

Discord v13

client.on('messageCreate', async message => {
    if (message.channel.id === 'channelId') {
        if (message.member.user.bot) return
        message.react('👍').then(() => {
            message.react('👎')
        })
    }
})

Keep in mind that, aside from bot messages, it will react to all messages with those emojis. Now if you are trying to create a suggestions channel, there are better and better looking ways to do that.

But I also agree with @Jan in your comments, please post meaningful questions with homework shown next time.

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