joinVoiceChannel is not a function. But its in dependencies
This is there error I get
Its says that
TypeError: joinVoiceChannel is not a function
but its in my require at const { Client, Collection, Events, GatewayIntentBits, createAudioResource, createAudioPlayer, AudioPlayerStatus, joinVoiceChannel, StreamType } = require('discord.js');
[email protected]
bun: 1.1.4 (I cant get node to work)3 Replies
- 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!
- ✅
Marked as resolved by OPdiscord.js
does not reexport @discordjs/voice
since it's an entirely optional submodule
you'd need to import from @discordjs/voice
directly (on the assumption you've installed it)Thank you, I need some sleep.