- Consolidate SCOUT_TOKENS_PER_DAY and get_scout_tokens_used() into helpers/scouting.py (was duplicated across 3 files) - Add midnight_timestamp() utility to helpers/utils.py - Remove _build_scouted_ids() wrapper, use self.claims directly - Fix build_scout_embed return type annotation - Use Discord <t:UNIX:R> relative timestamps for scout window countdown - Add 66-test suite covering helpers, ScoutView, and cog Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
41 lines
1010 B
Python
41 lines
1010 B
Python
"""
|
|
Discord UI Components
|
|
|
|
This package contains all Discord UI classes and components used throughout the application.
|
|
"""
|
|
|
|
from .confirmations import Question, Confirm, ButtonOptions
|
|
from .pagination import Pagination
|
|
from .selectors import (
|
|
SelectChoicePackTeam,
|
|
SelectOpenPack,
|
|
SelectPaperdexCardset,
|
|
SelectPaperdexTeam,
|
|
SelectBuyPacksCardset,
|
|
SelectBuyPacksTeam,
|
|
SelectUpdatePlayerTeam,
|
|
SelectView,
|
|
)
|
|
from .dropdowns import Dropdown, DropdownView
|
|
|
|
# ScoutView intentionally NOT imported here to avoid circular import:
|
|
# helpers.main → discord_ui → scout_view → helpers.main
|
|
# Import directly: from discord_ui.scout_view import ScoutView
|
|
|
|
__all__ = [
|
|
"Question",
|
|
"Confirm",
|
|
"ButtonOptions",
|
|
"Pagination",
|
|
"SelectChoicePackTeam",
|
|
"SelectOpenPack",
|
|
"SelectPaperdexCardset",
|
|
"SelectPaperdexTeam",
|
|
"SelectBuyPacksCardset",
|
|
"SelectBuyPacksTeam",
|
|
"SelectUpdatePlayerTeam",
|
|
"SelectView",
|
|
"Dropdown",
|
|
"DropdownView",
|
|
]
|