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

444
Visualizações
Discord JS - delete a reply message

I'm trying to delete certain message with certain event like this:

await interaction.reply({ content: `content` })
            .then(message => {
                console.log(message);
                client.on('messageDelete', async () => {
                    await message.delete();
                });
            });

But I get undefined in a console.log as a message. What is wrong? I already done the message delition with .then() and it worked, but now something is wrong. Maybe because it is reply, not just plain message?

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

0

You can delete a reply to an interaction by using deleteReply()

// Delete the reply to this interaction
interaction.deleteReply()
  .then(console.log)
  .catch(console.error);
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