What is the correct way to allow my bot to join a voice channel?

im getting this error: TS error: TypeError: message.member.voice.channel.join is not a function at Client.<anonymous> (C:\Users\pbnjr\OneDrive\Documents\Development\Discord Bots\bot.js:76:67) {stack: 'TypeError: message.member.voice.channel.join …uments\Development\Discord Bots\bot.js:76:67)', message: 'message.member.voice.channel.join is not a function'}, would anyone be able to tell me the correct way to write this?
2 Replies
d.js toolkit
d.js toolkit11mo ago
- What's your exact discord.js npm list discord.js and node node -v version? - Not a discord.js issue? Check out #other-js-ts. - Consider reading #how-to-get-help to improve your question! - Explain what exactly your issue is. - Post the full error stack trace, not just the top part! - Show your code! - Issue solved? Press the button!
Unknown User
Unknown User11mo ago
Message Not Public
Sign In & Join Server To View