Discord bots2 minutes to read

Why does my Discord music bot answer /play but make no sound?

Trace a silent Bothosting music bot from the /play reply through Lavalink track loading to Discord voice permissions, using one track in a test channel.

What did /play reply?

On the Bothosting music starter, the reply tells you how far playback got. “Your Lavalink server is unavailable” means the bot could not select an audio node. “No playable track found” means it reached the track lookup but received no usable track. “Playing your track” means the player accepted the request. Start with the last step that succeeded.

Join an ordinary voice channel in a test server and keep one track URL handy throughout the test. Use a public track page you have permission to play. If Discord never shows the command, begin with the missing slash command guide.

The bot cannot reach Lavalink

Open the audio deployment’s console and wait for Lavalink to finish starting. In the bot’s Variables, compare LAVALINK_HOST with the address supplied for the audio node. The starter accepts a host and port, with http:// for the private same-node listener or https:// for a TLS endpoint. Omit API paths such as /v4/info. A bare host defaults to HTTPS in this starter.

Enter the node password separately as LAVALINK_PASSWORD, then restart the bot. A bot on another worker or host needs an address reachable from there and an audio node configured to accept that connection. See the Lavalink hosting and placement guide.

The node is connected but the track lookup fails

Try a Bandcamp track page on the managed node. Its configuration enables Bandcamp and disables direct HTTP audio-file loading. A link ending in .mp3 can therefore play in a browser and still fail this test. The starter also expects a URL in /play, so typing a song title exercises a different error.

If one track works, keep the working URL and compare the source and availability of the failing track. When inspecting Lavalink’s response, loadType: empty means the lookup returned no matches. An error result includes information from the loader. Lavalink track loading results.

The player accepted the track but the channel is silent

Check whether the bot joined your voice channel. Check its effective Connect and Speak permissions there, including channel overrides, then check for a server mute. Ask a second listener to try. If they hear music, check the bot’s user volume and local mute in your Discord client.

Run /stop from the same channel and verify that the bot leaves. Play the same track again. Hearing the track after a fresh join tests the whole path from command to listener.