aboutsummaryrefslogtreecommitdiff
path: root/discord/interactions.py
diff options
context:
space:
mode:
authorRapptz <[email protected]>2021-05-31 00:18:06 -0400
committerRapptz <[email protected]>2021-05-31 00:18:06 -0400
commit4a3491cc0a012d5ea1594dd92c5e49f49739cad3 (patch)
tree8677e182278d92e8be274d4582180ac9d0a58f85 /discord/interactions.py
parentAdd support for editing in views in PartialMessage (diff)
downloaddiscord.py-4a3491cc0a012d5ea1594dd92c5e49f49739cad3.tar.xz
discord.py-4a3491cc0a012d5ea1594dd92c5e49f49739cad3.zip
Check for view finished state before resuming listening on edit
Diffstat (limited to 'discord/interactions.py')
-rw-r--r--discord/interactions.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/discord/interactions.py b/discord/interactions.py
index 5017df95..3ff8d84f 100644
--- a/discord/interactions.py
+++ b/discord/interactions.py
@@ -418,7 +418,7 @@ class InteractionResponse:
data=payload,
)
- if view is not MISSING:
+ if view is not MISSING and not view.is_finished():
msg = self._parent.message
message_id = msg.id if msg else None
self._parent._state.store_view(view, message_id)