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

139
Vistas
How can I check if someone is replying to a message from someone specific

I am using Discord.js v13

My goal is in a message event, like this:

client.on('messageCreate', async message => {
   //Code comes here
})

to check if anyone, no matter who, is replying to any message from a specific person

about 4 years ago · Juan Pablo Isaza
1 Respuestas
Responde la pregunta

0

Using the reference field, you can get whether the message is a reply. For example

client.on('messageCreate', async message => {
   if (message.reference.messageId) { // the message is a reply to another message
        let referenceMessage = message.channel.messages.cache.get(message.reference.messageId);
        if (referenceMessage.author.id == MY_USER_SNOWFLAKE) {
            // The reply was to the specific user!
        }
   }
})

Keep in mind that the reference message must be cached. If it isn't cached, you can use message.fetchReference().

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