From 61a189c2177d3d7b3a6ab7e9a97b8757502c591c Mon Sep 17 00:00:00 2001 From: Rapptz Date: Mon, 31 May 2021 00:09:15 -0400 Subject: [PATCH] Sync views in InteractionResponse.edit_message --- discord/interactions.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/discord/interactions.py b/discord/interactions.py index eb20030ec..5017df95a 100644 --- a/discord/interactions.py +++ b/discord/interactions.py @@ -417,4 +417,10 @@ class InteractionResponse: type=InteractionResponseType.message_update.value, data=payload, ) + + if view is not MISSING: + msg = self._parent.message + message_id = msg.id if msg else None + self._parent._state.store_view(view, message_id) + self._responded = True