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

106
Vistas
Discord bot can't join voice channel in 13.1.0
const connection = await voice_channel.join();

Gives me the error:

voice_channel.join is not a function

I have @discordjs/voice installed and everything but it does not work in my code. Does anyone know how I fix this? The same is with my

voice_channel.leave();

which also just gives me the error that it's not a function. Can anyone provide a code example for how I fix this? And yes I have this in my code:

const voice_channel = message.member.voice.channel;
about 4 years ago · Juan Pablo Isaza
1 Respuestas
Responde la pregunta

0

In version 13 joining a voice channel has been changed. You can read all about it in the discord.js guide. To join a voice channel you must now use the joinVoiceChannel() command from discordjs/voice. It is used like this:

const connection = joinVoiceChannel({
  channelId: channel.id,
  guildId: channel.guild.id,
  adapterCreator: channel.guild.voiceAdapterCreator
})

The channel variable in this example is an instance of BaseGuildVoiceChannel.

To leave the channel just call .disconnect() or .destroy() on your connection object.

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