fix synced lyrics

This commit is contained in:
Mylloon 2024-08-12 22:33:06 +02:00
parent 3e43eddc8e
commit 5e7b6b57db
Signed by: Anri
GPG key ID: A82D63DFF8D1317F

View file

@ -120,12 +120,14 @@ export default {
return await interaction.followUp(`❌ | ${loc.get("c_lyrics1")}`);
}
if (data === null || !data[0].syncedLyrics) {
return await interaction.followUp(`❌ | ${loc.get("c_lyrics3")} \`${request}\``);
if (data === null || !data[0] || !data[0].syncedLyrics) {
return await interaction.followUp(
`❌ | ${loc.get("c_lyrics3")} \`${queue.currentTrack?.cleanTitle}\``,
);
}
// Load lyrics
const syncedLyrics = queue?.syncedLyrics(data[0]);
const syncedLyrics = queue.syncedLyrics(data[0]);
syncedLyrics?.onChange(async (lyrics) => {
await interaction.channel?.send({