From 4a3491cc0a012d5ea1594dd92c5e49f49739cad3 Mon Sep 17 00:00:00 2001 From: Rapptz Date: Mon, 31 May 2021 00:18:06 -0400 Subject: Check for view finished state before resuming listening on edit --- discord/interactions.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'discord/interactions.py') 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) -- cgit v1.2.3