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>
2 lines
6 B
Plaintext
2 lines
6 B
Plaintext
1.7.5
|