Handle resolved data for modal components and types

This commit is contained in:
Soheab_
2025-09-21 16:06:31 +02:00
committed by Danny
parent 1d3642d1fe
commit 944ffe93c7
6 changed files with 84 additions and 21 deletions

View File

@@ -45,6 +45,7 @@ if TYPE_CHECKING:
from .action_row import ActionRow
from .container import Container
from .dynamic import DynamicItem
from ..app_commands.namespace import ResolveKey
I = TypeVar('I', bound='Item[Any]')
V = TypeVar('V', bound='BaseView', covariant=True)
@@ -97,6 +98,9 @@ class Item(Generic[V]):
def _refresh_component(self, component: Component) -> None:
return None
def _handle_submit(self, interaction: Interaction, data: Dict[str, Any], resolved: Dict[ResolveKey, Any]) -> None:
return self._refresh_state(interaction, data)
def _refresh_state(self, interaction: Interaction, data: Dict[str, Any]) -> None:
return None