v2.5.0
Version 2.5.0:
Player.disconnect()
now invalidates the player and discord.py voice client caches as soon as it is called.- Added
Queue.shuffle()
. This shuffles the queue in-place. E.g.player.queue.shuffle()
- Removed
return_first
keyword argument from all tracks includingSpotifyTrack
. Keeping this around has been a poor design choice for wavelink. Previously this resulted in Exceptions being raised if no tracks were found. Now an empty list or a list populated with tracks is always returned. Example of handling tracks:
tracks = await wavelink.YouTubeTrack.search(query)
if not tracks:
# No tracks were found, handle that here...
...
track = tracks[0]
- Fixed
__eq__
onSpotifyTrack
. - Added
__str__
and__repr__
toSpotifyTrack
- Changed:
wavelink.YouTubeTrack/YouTubeMusicTrack
now set the default thumbnail URL to the fetched thumbnail if.fetch_thumbnail()
is used. - Changed: If a URL is passed to any
Playable.search()
it is treated as a raw search without the search prefix. This helps make searching services like SoundCloud more precise.
Documentation: https://wavelink.dev