major-domo-v2/commands
Cal Corum c41166d53c feat: add is_admin() helper to utils/permissions.py (#55)
Add centralized `is_admin(interaction)` helper that includes the
`isinstance(interaction.user, discord.Member)` guard, preventing
AttributeError in DM contexts.

Use it in `can_edit_player_image()` which previously accessed
`guild_permissions.administrator` directly without the isinstance
guard. Update the corresponding test to mock the user with
`spec=discord.Member` so the isinstance check passes.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-09 09:37:22 -05:00
..
admin fix: implement actual maintenance mode flag in /admin-maintenance (#28) 2026-03-03 22:08:02 +00:00
custom_commands fix: remove 226 unused imports across the codebase (closes #33) 2026-02-20 11:35:04 -06:00
dev Add dev-only loaded dice command for testing /ab rolls 2026-01-07 22:45:01 -06:00
dice fix: remove 226 unused imports across the codebase (closes #33) 2026-02-20 11:35:04 -06:00
draft refactor: move 42 unnecessary lazy imports to top-level across codebase 2026-03-02 13:35:23 -06:00
examples fix: remove 226 unused imports across the codebase (closes #33) 2026-02-20 11:35:04 -06:00
gameplay fix: scorebug stale data, win probability parsing, and read-failure tolerance (closes #39, #40) 2026-02-20 14:14:23 -06:00
help fix: remove 226 unused imports across the codebase (closes #33) 2026-02-20 11:35:04 -06:00
injuries refactor: move 42 unnecessary lazy imports to top-level across codebase 2026-03-02 13:35:23 -06:00
league fix: remove 226 unused imports across the codebase (closes #33) 2026-02-20 11:35:04 -06:00
players refactor: move 42 unnecessary lazy imports to top-level across codebase 2026-03-02 13:35:23 -06:00
profile feat: add is_admin() helper to utils/permissions.py (#55) 2026-03-09 09:37:22 -05:00
soak refactor: move 42 unnecessary lazy imports to top-level across codebase 2026-03-02 13:35:23 -06:00
spoiler Refactored listener logic and added SpoilerListener 2025-10-22 14:59:19 -05:00
teams fix: update roster labels to use Minor League and Injured List (#59) 2026-03-04 22:04:57 -06:00
transactions fix: auto-detect player roster type in trade commands instead of assuming ML 2026-03-01 23:29:01 -06:00
utilities fix: remove 226 unused imports across the codebase (closes #33) 2026-02-20 11:35:04 -06:00
voice Consolidate season config variables to single source (v2.21.0) 2025-12-02 16:12:16 -06:00
__init__.py CLAUDE: Initial commit for discord-app-v2 rebuild 2025-08-15 00:04:50 -05:00
CLAUDE.md CLAUDE: Add comprehensive CLAUDE.md documentation files for AI agent guidance 2025-10-20 20:30:07 -05:00