From 9719bf02c6d81aebd9270000f0c09e194e81d479 Mon Sep 17 00:00:00 2001 From: Mylloon Date: Mon, 12 Aug 2024 23:11:51 +0200 Subject: [PATCH] dont crash when there is not lyrics --- src/commands/music/lyrics.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/commands/music/lyrics.ts b/src/commands/music/lyrics.ts index 981ce9d..0d13380 100644 --- a/src/commands/music/lyrics.ts +++ b/src/commands/music/lyrics.ts @@ -144,7 +144,7 @@ export default { }); } - if (data && data.length > 0) { + if (data && data.length > 0 && data[0].plainLyrics !== null) { const title = data[0]; const limit_desc = 4096; const nb_embed = Math.ceil(title.plainLyrics.length / limit_desc);