What requirements your Bot needs, in order to work!
You need a working Lavalink Server (v4)
The Lavalink Server must be accessable:
Make sure the Firewall allows you to connect
Make sure the Lavalink version is at least beta v4 or higher
Guides:
Official Lavalink Getting Started Docsarrow-up-right
My Lavalink Tutorial
Your Discord Bot needs the following Intents:
Guildsarrow-up-right: 1 << 0 (1)
1 << 0 (1)
GuildVoiceStatesarrow-up-right: 1 << 7 (128)
1 << 7 (128)
On the Manager (Client):
Provide the right node-options in the Manager (required)
Provide the right authorization (aka password)
authorization
Provide the right port
port
Provide the right host (ip / domain-name)
host
Make sure to initalize the manager (either on bot-ready event / right on boot)
lavalinkManager.init(client.user);
Make sure to listen to Bot-Ready events (JSON data)
bot.on("raw", payload => lavalinkManager.sendRawData(payload));
All of those are the minimum requirements, to get started using lavalink-client, and roughly cover any other lavalink clients for any language(s)
Last updated 2 years ago