@commands.Cog.listener()
async def on_wavelink_track_end(self, player: wavelink.Player, track: wavelink.Track, reason):
    'When a track ends, check if there is another one in the queue.'
    (await asyncio.sleep(5))
    if (not player.queue.is_empty):
        next_track = player.queue.get()
        (await player.play(next_track))
When a track ends, check if there is another one in the queue.
@commands.Cog.listener()
async def on_wavelink_track_end(self, player: wavelink.Player, track: wavelink.Track, reason):
    
    (await asyncio.sleep(5))
    if (not player.queue.is_empty):
        next_track = player.queue.get()
        (await player.play(next_track))