From 6f722c36aab1da204938668b8ad35ccc7557744e Mon Sep 17 00:00:00 2001 From: Mylloon Date: Sat, 18 Mar 2023 19:49:50 +0100 Subject: [PATCH] Label of following songs showed only on second element of first page or first element of other pages --- src/utils/music.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/utils/music.ts b/src/utils/music.ts index 4705253..db40104 100644 --- a/src/utils/music.ts +++ b/src/utils/music.ts @@ -26,7 +26,11 @@ export const embedListQueue = ( tracks.slice((page - 1) * limit_fields, page * limit_fields).forEach((t, idx) => { const now_playing = idx == 0 && page == 1; - const name = now_playing ? loc.get("c_queue10") : idx == 1 ? loc.get("c_queue11") : "\u200b"; + const name = now_playing + ? loc.get("c_queue10") + : (idx == 1 && page == 1) || (idx == 0 && page > 1) + ? loc.get("c_queue11") + : "\u200b"; const idx_track = now_playing ? "" : `${idx + limit_fields * (page - 1)}. `; embed.addFields({ name, -- 2.45.2