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