API reference
Method DecodeTrackAsync
- Namespace
- DisCatSharp.Lavalink
- Assembly
- DisCatSharp.Lavalink.dll
DecodeTrackAsync(string, CancellationToken)
Decodes an encoded LavalinkTrack.
Might not work with pre 3.0 tracks.
public Task<LavalinkTrack> DecodeTrackAsync(string track, CancellationToken cancellationToken = default)
Parameters
trackstringThe track to decode.
cancellationTokenCancellationTokenThe cancellation token.
Returns
- Task<LavalinkTrack>
The decoded LavalinkTrack.