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

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

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