Lavalink gets song information but doesn't play?
See original GitHub issueLavalink 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:
- Created 2 years ago
- Comments:7 (2 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Library not sending
voiceUpdate
op for connecting to discord voice channelUpdate
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