Paper Dynasty Discord - Discord bot for card game
Fixed TypeError: 'Team' object is not subscriptable error occurring at the end of /gauntlet start command when sending completion messages. The get_roster_sheet() function was using dict syntax (team["gsheet"]) but was receiving Team objects from gauntlet commands. Updated the function to handle both dict and Team object formats using isinstance() check. This follows the same pattern as get_context_user() and owner_only() for handling multiple input types gracefully. Fixes: Command 'start' raised an exception: TypeError: 'Team' object is not subscriptable (reported at end of gauntlet draft completion) 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com> |
||
|---|---|---|
| .plans | ||
| .vscode | ||
| cogs | ||
| command_logic | ||
| discord_ui | ||
| helpers | ||
| in_game | ||
| migrations | ||
| tests | ||
| utilities | ||
| .dockerignore | ||
| .gitignore | ||
| alembic.ini | ||
| api_calls.py | ||
| constants.py | ||
| db_calls_gameplay.py | ||
| dice.py | ||
| discord_utils.py | ||
| Dockerfile | ||
| exceptions.py | ||
| gauntlets.py | ||
| help_text.py | ||
| helpers.py | ||
| LICENSE | ||
| manual_pack_distribution.py | ||
| paperdynasty.py | ||
| pytest.ini | ||
| random_content.py | ||
| requirements.txt | ||
| search_utils.py | ||
| utils.py | ||