LyricsMethods
The lyrics methods for the player.
Signature
export interface LyricsMethodsProperties
0No properties.
Methods
4Methods
current(skipSource?: boolean): Promise<LyricsResult | null>;Get the current lyrics for the current track.
Parameters
skipSource- Whether to skip the source or not.
Returns
The lyrics result or null if not found.
Examples
const player = manager.getPlayer("guildId");
const lyrics = await player.lyrics.current();get(track: TrackStructure, skipSource?: boolean): Promise<LyricsResult | null>;Get the lyrics for a specific track.
Parameters
track- The track to get the lyrics for.
skipSource- Whether to skip the source or not.
Returns
The lyrics result or null if not found.
Examples
const player = manager.getPlayer("guildId");
const track = player.queue.current;
const lyrics = await player.lyrics.get(track);subscribe(skipSource?: boolean): Promise<void>;Subscribe to the lyrics for a specific guild.
Parameters
skipSource- Whether to skip the source or not.
Returns
Let's start the sing session!
Examples
const player = manager.getPlayer("guildId");
await player.lyrics.subscribe();unsubscribe(): Promise<void>;Unsubscribe from the lyrics for a specific guild.
Returns
Let's stop the sing session!
Examples
const player = manager.getPlayer("guildId");
await player.lyrics.unsubscribe();