feat(music): add multi-page pagination to top leaderboard command

- Integrate QueuePaginator into commands/top.mjs for interactive browsing (⬅️ / ➡️)
- Support direct page jumping via slash option and text arguments (%top [timeframe] [page])
- Paginate tracks into 10 items per page up to 50 tracks with dynamic rank badges
- Increase track query limits in GuildStats.mjs across MySQL and in-memory caches
This commit is contained in:
NoLogicAlan committed 2026-11-21 00:29:02 +03:00
1 parent 452c080224
commit ade75a4a79
10 files changed
+113 -49

No files matched your search

+4 -2
View File
@@ -208,7 +208,8 @@
"position": "要跳轉到的佇列曲目序號。"
},
"top": {
"timeframe": "篩選時間範圍:week、month、all 或 global。"
"timeframe": "篩選時間範圍:week、month、all 或 global。",
"page": "要跳轉到的頁碼。"
},
"wrapped": {
"scope": "回顧範圍:server 或 global。"
@@ -1403,7 +1404,8 @@
"plays": "次播放",
"globalAuthor": "全球排行榜 • 所有伺服器",
"globalTitle": "所有伺服器中最多播放的曲目",
"globalFooter": "篩選方式:{{prefix}}top week • {{prefix}}top month • {{prefix}}top all • {{prefix}}top global"
"globalFooter": "篩選方式:{{prefix}}top week • {{prefix}}top month • {{prefix}}top all • {{prefix}}top global",
"pageFooter": "第 {{page}}/{{totalPages}} 頁 • {{timeframe}}"
},
"wrapped": {
"wrappedAuthor": "社區年度音樂回顧",