paper-dynasty-discord/cogs
Cal Corum 584a8a95ab Fix slash command decorators using wrong prefix command checks
Bug: Several slash commands (@app_commands.command) were using prefix command
decorators (@commands.has_any_role, @commands.check) which don't work with
app_commands. This caused errors caught by the global error handler, resulting
in "Unknown interaction" (404) errors being displayed before the command executed.

Affected commands:
- /comeonmanineedthis: Both role and channel checks were wrong
- /selldupes: Channel check was wrong
- /team: Channel check was wrong

Fix:
- Created app_legal_channel() decorator in helpers.py for slash commands
- Changed @commands.has_any_role to @app_commands.checks.has_any_role
- Changed @commands.check(legal_channel) to @app_legal_channel()

Bumps version to 1.7.5

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

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-17 07:29:08 -06:00
..
economy_new CLAUDE: Add get_context_user() helper for hybrid command compatibility 2025-11-10 09:07:09 -06:00
players_new CLAUDE: Add news-ticker message when gauntlet runs end with 2 losses 2025-11-10 09:17:55 -06:00
admins.py Catchup commit 2025-07-22 09:22:19 -05:00
economy.py Fix slash command decorators using wrong prefix command checks 2025-11-17 07:29:08 -06:00
gameplay_legacy.py Add responders check to dropdowns 2024-12-27 22:33:25 -06:00
gameplay.py CLAUDE: Fix gauntlet game creation and Event 9 issues 2025-11-09 18:56:38 -06:00
owner.py New sync method 2024-12-18 09:59:39 -06:00
players.py Fix slash command decorators using wrong prefix command checks 2025-11-17 07:29:08 -06:00
players.py.backup Cogs to Packages Groundwork 2025-08-17 08:46:55 -05:00