major-domo-v2/views
Cal Corum 62541ac750 Add injury log posting and fix view interaction permissions
Features:
- Post injury announcements to #sba-network-news when injuries are logged
- Update #injury-log channel with two embeds:
  - All injuries grouped by Major League team with return dates
  - All injuries grouped by return week, sorted ascending
- Auto-purge old messages before posting updated injury log

Bug Fixes:
- Fix BaseView interaction_check logic that incorrectly rejected command users
  - Old: Rejected if (not user_id match) OR (not in responders)
  - New: Allow if (user_id match) OR (in responders)
- Filter None values from responders list (handles missing gmid2)

Changes:
- services/injury_service.py: Add get_all_active_injuries_raw() method
- utils/injury_log.py: New utility for injury channel posting
- views/modals.py: Call injury posting after successful injury logging
- views/base.py: Fix interaction authorization logic
- config.py: Update to Season 13 Players role

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-19 00:08:11 -06:00
..
__init__.py CLAUDE: SUCCESSFUL STARTUP - Discord Bot v2.0 fully operational 2025-08-16 07:36:47 -05:00
base.py Add injury log posting and fix view interaction permissions 2025-12-19 00:08:11 -06:00
CLAUDE.md CLAUDE: Add comprehensive CLAUDE.md documentation files for AI agent guidance 2025-10-20 20:30:07 -05:00
common.py Fix sWAR display precision and draft team role pings 2025-12-12 18:41:46 -06:00
confirmations.py CLAUDE: Add comprehensive scorecard submission system 2025-10-16 00:21:32 -05:00
custom_commands.py CLAUDE: Fix double emoji issue in Discord embeds 2025-10-16 23:09:21 -05:00
draft_views.py Add Google Sheet link to draft embeds 2025-12-11 20:10:16 -06:00
embeds.py Fix sWAR display precision and draft team role pings 2025-12-12 18:41:46 -06:00
help_commands.py Add input validation for help command name and category 2025-12-11 19:11:42 -06:00
modals.py Add injury log posting and fix view interaction permissions 2025-12-19 00:08:11 -06:00
players.py Fix sWAR display precision and draft team role pings 2025-12-12 18:41:46 -06:00
trade_embed.py Add trade acceptance workflow with transaction logging (v2.22.0) 2025-12-04 13:46:10 -06:00
transaction_embed.py Allow IL moves to post to transaction log during freeze period 2025-12-16 22:19:53 -06:00