Table of Contents
API reference

Method PlayAsync

Namespace
DisCatSharp.Lavalink
Assembly
DisCatSharp.Lavalink.dll

Plays a song by its identifier.

public Task<LavalinkGuildPlayer> PlayAsync(string identifier, CancellationToken cancellationToken = default)

Parameters

identifier string

The identifier to play.

cancellationToken CancellationToken

The cancellation token.

Returns

Task<LavalinkGuildPlayer>

The updated guild player.

Plays a track.

public Task<LavalinkGuildPlayer> PlayAsync(LavalinkTrack track, CancellationToken cancellationToken = default)

Parameters

track LavalinkTrack

The track to play.

cancellationToken CancellationToken

The cancellation token.

Returns

Task<LavalinkGuildPlayer>

The updated guild player.