I have an error
Hello, i'm programming a bot who play sounds in a voice channel, but when I execute my command !play with the URL he says "voiceChannel.join is not a function, how can I fix it ?
https://pastebin.com/T6TpbNsR here the code
Thanks !
Pastebin
index.js - Pastebin.com
Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.
15 Replies
• What's your exact discord.js
npm list discord.js
and node node -v
version?
• Post the full error stack trace, not just the top part!
• Show your code!
• Explain what exactly your issue is.
• Not a discord.js issue? Check out #useful-servers.I modify the code but he sais that I need to be in a voice channel but i'm in... https://pastebin.com/ykjzWLPx
Pastebin
index.js - Pastebin.com
Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.
(It's in French) You need to be in a voice channel to use this command

i think it's
oh okay my bad 😅
I try it and i say if it work
I think it's my code...

the code ?
just here (with the GuildVoiceStates) https://pastebin.com/p7uWUYji
Pastebin
index.js - Pastebin.com
Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.
yeah 😅 (I want to be to fast I think hehe)
(he's importing)
he finish to import, I run the code and say if it work
I import it but I always have this error


i use
I modify everything, i reinstall discord.js and @discordjs/voice and have this error @qjuh

i'm going to eat
Just here @qjuh
oh ok