Open TEGRAXD opened 1 week ago
Some time ago, the same thing happened to me and I added this to my intents
GatewayIntentBits.GuildVoiceStates
For your specific code, I'd also recommend using "lavacord/dist/discord.js" instead of just lavacord. How it's used is a little different, but if you're using an editor with intellisense like VSCode then it shouldn't be too hard. Currently, all that I can spot that's wrong is the fact that you don't have the guild voice states intent like @Exodo0 mentioned, you don't have a send function for forwarding gateway packets from lavacord to your Discord library, you don't forward VOICE_STATE_UPDATE or VOICE_SERVER_UPDATE packets to Lavacord, manager.create
should be manager.join
and you need to await it for the Player.
Most of these issues can be remedied by switching to the discord.js bindings for lavacord which is the require("lavacord/dist/discord.js")
This error occured when I try to
manager.connect()
So for context, i just trying to learn how to use Lavalink through Lavacord. This is just simplified code that reproduce the error.
Error Stack Trace
Lavacord Version
Lavalink Version
Discord.js Version
Node Version