aboutsummaryrefslogtreecommitdiff
path: root/discord/interactions.py
diff options
context:
space:
mode:
authorRapptz <[email protected]>2021-05-31 00:09:15 -0400
committerRapptz <[email protected]>2021-05-31 00:09:15 -0400
commit61a189c2177d3d7b3a6ab7e9a97b8757502c591c (patch)
tree0efe63d4e53580023ec499ff43698c45448404a3 /discord/interactions.py
parentImplement StageInstance (diff)
downloaddiscord.py-61a189c2177d3d7b3a6ab7e9a97b8757502c591c.tar.xz
discord.py-61a189c2177d3d7b3a6ab7e9a97b8757502c591c.zip
Sync views in InteractionResponse.edit_message
Diffstat (limited to 'discord/interactions.py')
-rw-r--r--discord/interactions.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/discord/interactions.py b/discord/interactions.py
index eb20030e..5017df95 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