Fix: Queue listing starting at 26 #87

Merged
Anri merged 3 commits from fix-85 into main 2023-03-18 19:33:28 +01:00
Showing only changes of commit 9809b08da5 - Show all commits

View file

@ -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 * page}. `;
const idx_track = idx == 0 ? "" : `${idx + limit_fields * page}. `;
embed.addFields({
name,
value: `${idx_track}[${t.title}${t.author}](${t.url}) (${t.duration})`,