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

214
Vistas
voiceStateUpdate event doesn't do anything

I have a problem since the v13 update of discord.js. I can log the channels (oldState, newState) but the code is not executing and returns no errors!

Here is my code:

client.on('voiceStateUpdate', async (oldState, newState) => {

    console.log(oldState) //I got the channel on the console
 
    //But the lines below not work at all since the v13 update
    if(oldState.channelID == '825407723129536543') {
        console.log(`old state is > ${oldState.channelID}`)

        if(oldState.channel.members.size == 0) {
            oldChannel = client.channels.cache.find(c => c.name == "test")
            client.channels.cache.find(c => c.name == "test").clone(undefined, true, false, 'Needed a clone')
            .then(oldChannel.delete())
        }
    }
});
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