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

257
Vistas
ReactionCollector in Discord.js user.send() is not a function

I created a ReactionCollector for my Discord Bot, but if I want to send a message to the user the error user.send() is not a function comes up. My Discord.js version is v11.

    const filter = (reaction, user) => {
        return validEmojis.includes(reaction.emoji.name) && user.id !== bot.user.id;
};
    const collector = message.createReactionCollector(filter)

    collector.on('collect', (reaction, user) => {
        if (reaction.emoji.name === "🔊") {
            user.send("hello")
        }       
    });

Log output of the reaction parameter in the ReactionCollector:

<ref *1> MessageReaction {
  message: Message {
  me: true,
  count: 2,
  users: Collection(1) [Map] {
    '342000434514493440' => User {
      id: '342000434514493440',
      username: 'TFS_NerzDesmony',
      discriminator: '7832',
      avatar: 'b05491a41564a2f32811b55d4ea44103',
      bot: false,
      lastMessageID: null,
      lastMessage: null
    }
  },
  _emoji: ReactionEmoji {
    reaction: [Circular *1],
    name: '🔊',
    id: null,
    animated: false
  }
}

Hope anyone can help me solve this problem

about 4 years ago · Santiago Gelvez
1 Respuestas
Responde la pregunta

0

Replace user.send("hello") by reaction.users.first().send("hello") according to MessageReaction since you are using Discord.js v11.

about 4 years ago · Santiago Gelvez 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