API reference
Method DecodeTracksAsync
- Namespace
- DisCatSharp.Lavalink
- Assembly
- DisCatSharp.Lavalink.dll
DecodeTracksAsync(IEnumerable<string>, CancellationToken)
Decodes encoded LavalinkTracks.
Might not work with pre 3.0 tracks.
public Task<IReadOnlyList<LavalinkTrack>> DecodeTracksAsync(IEnumerable<string> tracks, CancellationToken cancellationToken = default)
Parameters
tracksIEnumerable<string>The tracks to decode.
cancellationTokenCancellationTokenThe cancellation token.
Returns
- Task<IReadOnlyList<LavalinkTrack>>
A List<T> of decoded LavalinkTracks.