You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- Remove the count option from /codes (was capped at 20)
- Add getRedeemedCodeCount() to codeManager for total page calculation
- Add offset parameter to getRedeemedCodeDetails() for slicing
- Build pages of 5 codes with disabled-aware ◀ Prev / Next ▶ buttons
- Button custom IDs encode the owner's Discord ID so only they can page
- Handle button interactions in bot.ts via a dedicated InteractionCreate listener
- Add tests: limit, offset/pagination, count (8 new tests, 169 pass total)
Signed-off-by: Michael Cramer <michael@bigmichi1.de>
Copy file name to clipboardExpand all lines: IDEAS/TODO.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -25,7 +25,7 @@ Priority is rated from an end-user perspective:
25
25
- ✅ **DM notifications for new codes***(implemented)* — Opt-in per user to get a DM when a code is *detected*, independent of whether autoredeem is on. Users who want to redeem manually currently have no way to know a code appeared.
26
26
- ✅ **Notification preferences command***(implemented)* — Let users configure: DM on success, DM on failure, DM when a code they haven't claimed is about to expire. High value as DM spam is a common complaint with bots.
27
27
- 🔴 **Better blacksmith UX** — `/blacksmith` requires a raw hero ID. Inventory data from `getUserDetails` includes hero names — show a hero picker or list. Current UX is nearly unusable without looking up IDs externally.
28
-
-🟢**Paginated `/codes`** — Replace the `count` cap (currently max 20) with Discord prev/next buttons for a cleaner experience.
28
+
-✅**Paginated `/codes`***(implemented)* — Replace the `count` cap (currently max 20) with Discord prev/next buttons for a cleaner experience.
0 commit comments