question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Lavalink gets song information but doesn't play?

See original GitHub issue

Lavalink Not Playing Music

I’ve got Lavalink to get the song information and to play the song but when it tries to play it fails with no errors.

Lavalink Log https://pastebin.com/fF2ZvPvp

Music Bot Code

let firstarray = fetchList.playlistArray[0].title;
let Searched = await player.search(firstarray, message.author);

if (fetchList.playlistArray) {
    player.queue.add(Searched.tracks[0]);
    if (!player.playing && !player.paused && !player.queue.size)
        player.play();
}

fetchList.playlistArray[0].title; returns the title of the song so no issues there?

Any help would be great

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:7 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
Walkystcommented, Oct 30, 2021

Library not sending voiceUpdate op for connecting to discord voice channel

0reactions
ItsLeon15commented, Oct 31, 2021

Update

So, this was a surprising fix which for some reason I never found. The libary doesn’t add voiceUpdate automatically so I had to solve for that.

After the music plays it connects to the voice channel and boom!

Can’t believe I’m so dumb.

Thanks @Walkyst for spotting the issue and helping me resolve it

Read more comments on GitHub >

github_iconTop Results From Across the Web

Lavalink not playing tracks · Issue #4 · MrJacz/discord ... - GitHub
Hey there, When I'm trying to play a track it just won't play. I tried everything resolving tracks with snekfetch and trying to...
Read more >
lavaplayer - Lavalink - Something broke when playing the track
When I'm trying to play a song using Lavalink i get this error : com.sedmelluq.discord.lavaplayer.tools.FriendlyException: Something broke ...
Read more >
Event Reference - Wavelink 1.0.0 documentation
WaveLink Events are events dispatched when certain events happen in Lavalink and Wavelink. All events must be coroutines. Events are dispatched via discord.py ......
Read more >
Red-Lavalink - Python Package Health Analysis - Snyk
Lavalink client library for Red-DiscordBot For more information about how to ... `player.force_shuffle` does not respect `player.shuffle` And will always ...
Read more >
Hydra can't find source from certain spotify songs : r/discordbots
Most likely it uses lavalink, so instead of actually getting the song on Spotify, it probably fetches the name of the song and...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found