Handle resolved data for modal components and types

This commit is contained in:
Soheab_ authored and Rapptz committed 2025-09-28 16:09:06 -04:00
1 parent dd6e5f64dd
commit 0b600095ba
6 files changed
+84 -21

No files matched your search

+2 -1
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: