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

427
Vistas
How to check if a specific user reacted with a specific emoji?

I was trying to make it so that a user can only react once on a message.

This is my attempt

if(reaction.users.cache.has(user.id)) {
  reaction.remove().catch(err => {return;})
}

This always removes the reaction (I understand it's because the user just reacted). I tried checking the reaction emojis like this:

reaction.message.reactions.cache.some(r => r.emoji.name === 'my_emoji')

This always returns true because my bot reacts to it, and other people can also react.

I tried checking the docs but there is nothing like MessageReaction.user that could help.

How can I check if the specific user reacted with a specific emoji?

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

0

Try accessing ReactionUserManager along with ReactionEmoji and check if the manager has the id and the current reaction's emoji is your target emoji.

reaction.message.reactions.cache
   .filter(r => r.emoji.name === 'my_emoji')
   .some(r => r.users.cache.has(user.id));
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