Introduction
Lavalink is a standalone audio sending node for Discord bots. It allows you to stream high-quality music to Discord without consuming your bot’s resources.Downloading Lavalink
Get Lavalink JAR
Download the latest Lavalink release from the official GitHub
releases. Download the
Lavalink.jar file.Configuration File
Create anapplication.yml file:
application.yml
Shard Cloud Configuration
Create a.shardcloud file:
.shardcloud
The
SUBDOMAIN gives you a URL like my-lavalink.shardweb.app to connect
your bot.Deploying
Upload to Shard Cloud
Go to Shard Cloud Dashboard and
upload your ZIP file.
Connecting Your Bot
When connecting to your Lavalink server from your Discord bot:- Host:
my-lavalink.shardweb.app - Port:
443(SSL/HTTPS) - Password: Your configured password
- Secure:
true
Example Connection (discord.js + Shoukaku)
Example Connection (discord.py + wavelink)
Always use port 443 and
secure: true when connecting to your Lavalink on
Shard Cloud.Additional Resources
Troubleshooting
Connection refused
Connection refused
- Verify the password matches - Use port 443 with secure/SSL enabled - Check that your Lavalink server is running
Out of memory
Out of memory
Increase the
MEMORY value in your .shardcloud config (minimum 512MB
recommended).No audio sources
No audio sources
Check your
application.yml to ensure the required sources are enabled.