mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-12-04 22:42:21 +00:00
Handle resolved data for modal components and types
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user