From 21d9c7e8e74012dbc78d4a525cc0cb53364388ea Mon Sep 17 00:00:00 2001 From: Anri Kennel Date: Sat, 18 Mar 2023 19:33:27 +0100 Subject: [PATCH] Fix: Queue listing starting at 26 (#87) Co-authored-by: Mylloon Reviewed-on: https://git.mylloon.fr/ConfrerieDuKassoulait/Botanique/pulls/87 --- src/utils/music.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/music.ts b/src/utils/music.ts index 5b41d3e..921af58 100644 --- a/src/utils/music.ts +++ b/src/utils/music.ts @@ -26,7 +26,7 @@ export const embedListQueue = ( tracks.slice((page - 1) * limit_fields, page * limit_fields).forEach((t, idx) => { const name = idx == 0 ? loc.get("c_queue10") : idx == 1 ? loc.get("c_queue11") : "\u200b"; - const idx_track = idx == 0 ? "" : `${idx + limit_fields * page}. `; + const idx_track = idx == 0 ? "" : `${idx + limit_fields * (page - 1)}. `; embed.addFields({ name, value: `${idx_track}[${t.title} • ${t.author}](${t.url}) (${t.duration})`,