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

@@ -828,7 +828,8 @@ class ConnectionState(Generic[ClientT]):
inner_data = data['data']
custom_id = inner_data['custom_id']
components = inner_data['components']
self._view_store.dispatch_modal(custom_id, interaction, components)
resolved = inner_data.get('resolved', {})
self._view_store.dispatch_modal(custom_id, interaction, components, resolved)
self.dispatch('interaction', interaction)
def parse_presence_update(self, data: gw.PresenceUpdateEvent) -> None: