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

533
Vistas
createMessageComponentCollector is not a function. How to fix?

I'm writing my discord music bot and I'm trying to handle button presses via createMessageComponentCollector, but I'm getting the error createMessageComponentCollector is not a function Code example:

// player.textChannel is channel id
    const nplaying = await client.channels.cache.get(player.textChannel).send({ embeds: [embed], components: [row, row2] });
    
    const filter = (message) => {
      if(message.guild.me.voice.channel && message.guild.me.voice.channelId === message.member.voice.channelId) return true;
      else {
        const msg = message.reply({ embeds: "You need be in vc", ephemeral: true });
        setTimeout(() => msg.delete(), 5000);
      }
    };
    const collector = nplaying.createMessageComponentCollector({ filter, time: player.current.length });

// player.current.length - track length
    collector.on('collect', async (message) => {...
about 4 years ago · Juan Pablo Isaza
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