Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

107
Views
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 answers
Answer question

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 Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!