paper-dynasty-discord/discord_ui
Cal Corum 01f6fb50d5
All checks were successful
Build Docker Image / build (pull_request) Successful in 3m17s
fix: prevent crash when Check-In Player packs appear in open-packs menu
Check-In Player packs (auto-opened by daily check-in) could end up orphaned
in inventory if roll_for_cards failed. The open-packs command crashed because:
1. The hyphenated pack type name bypassed the pretty_name logic, producing an
   empty select menu that Discord rejected (400 Bad Request)
2. Even if displayed, selecting it would raise KeyError in the callback since
   "Check-In Player".split("-") doesn't match any known pack type token

Fixes:
- Filter auto-open pack types out of the manual open-packs menu
- Add fallback for hyphenated pack type names in pretty_name logic
- Replace KeyError with graceful user-facing message for unknown pack types
- Change "contact an admin" to "contact Cal" in all user-facing messages

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-26 08:45:51 -05:00
..
__init__.py refactor: Consolidate scouting utilities, add test suite, use Discord timestamps 2026-03-09 13:22:58 +00:00
confirmations.py Catchup commit 2025-07-22 09:22:19 -05:00
dropdowns.py Catchup commit 2025-07-22 09:22:19 -05:00
pagination.py Catchup commit 2025-07-22 09:22:19 -05:00
scout_view.py Merge pull request 'enhance/scouting' (#81) from enhance/scouting into main 2026-03-09 18:35:39 +00:00
selectors.py fix: prevent crash when Check-In Player packs appear in open-packs menu 2026-03-26 08:45:51 -05:00