Fix Pydantic validation errors when channel IDs are not configured: Issue: - result_channel_id and ping_channel_id were required fields - Database may not have these values configured yet - /draft-admin info command failed with validation errors Fixes: 1. models/draft_data.py: - Make result_channel_id and ping_channel_id Optional[int] - Update validator to handle None values - Prevents validation errors on missing channel data 2. views/draft_views.py: - Handle None channel IDs in admin info embed - Display "Not configured" instead of invalid channel mentions - Prevents formatting errors when channels not set Testing: - Validated model accepts None for channel IDs - Validated model accepts int for channel IDs - Validated model converts string channel IDs to int - All validation tests pass This allows draft system to work before channels are configured via /draft-admin channels command. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| __init__.py | ||
| base.py | ||
| CLAUDE.md | ||
| common.py | ||
| confirmations.py | ||
| custom_commands.py | ||
| draft_views.py | ||
| embeds.py | ||
| help_commands.py | ||
| modals.py | ||
| players.py | ||
| trade_embed.py | ||
| transaction_embed.py | ||