fix: synced lyrics (#143)
All checks were successful
Publish latest version / build (push) Successful in 1m36s
All checks were successful
Publish latest version / build (push) Successful in 1m36s
Reviewed-on: #143 Co-authored-by: Mylloon <kennel.anri@tutanota.com> Co-committed-by: Mylloon <kennel.anri@tutanota.com>
This commit is contained in:
parent
3e43eddc8e
commit
fe38841bf6
1 changed files with 5 additions and 3 deletions
|
@ -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({
|
||||
|
|
Loading…
Reference in a new issue