API reference
Method PlayPartialEncodedAsync
- Namespace
- DisCatSharp.Lavalink
- Assembly
- DisCatSharp.Lavalink.dll
PlayPartialEncodedAsync(string, TimeSpan, TimeSpan, CancellationToken)
Plays a song by its encoded track string with a start and end-time.
public Task<LavalinkGuildPlayer> PlayPartialEncodedAsync(string encodedTrack, TimeSpan startTime, TimeSpan endTime, CancellationToken cancellationToken = default)
Parameters
encodedTrackstringThe encoded track to play.
startTimeTimeSpanThe start time.
endTimeTimeSpanThe end time.
cancellationTokenCancellationTokenThe cancellation token.
Returns
- Task<LavalinkGuildPlayer>
The updated guild player.