Table of Contents
API reference

Method SeekAsync

Namespace
DisCatSharp.Lavalink
Assembly
DisCatSharp.Lavalink.dll

Seeks the player to the position in seconds.

public Task<LavalinkGuildPlayer> SeekAsync(int seconds, CancellationToken cancellationToken = default)

Parameters

seconds int

The seconds to seek to.

cancellationToken CancellationToken

The cancellation token.

Returns

Task<LavalinkGuildPlayer>

The updated guild player.

Seeks the player to the position.

public Task<LavalinkGuildPlayer> SeekAsync(TimeSpan position, CancellationToken cancellationToken = default)

Parameters

position TimeSpan

The position to seek to.

cancellationToken CancellationToken

The cancellation token.

Returns

Task<LavalinkGuildPlayer>

The updated guild player.