API reference
Method GetLyricsForCurrentTrackAsync
- Namespace
- DisCatSharp.Lavalink
- Assembly
- DisCatSharp.Lavalink.dll
GetLyricsForCurrentTrackAsync(string, ulong, bool, CancellationToken)
Gets the lyrics for a currently playing track.
public Task<LavalinkLyricsResult?> GetLyricsForCurrentTrackAsync(string sessionId, ulong guildId, bool skipTrackSource, CancellationToken cancellationToken = default)
Parameters
sessionIdstringThe session id a player is associated with.
guildIdulongThe guild id a player is associated with.
skipTrackSourceboolWhether to skip the current track source and fetch from highest priority source.
cancellationTokenCancellationTokenThe cancellation token.
Returns
- Task<LavalinkLyricsResult>
The LavalinkLyricsResult or null.