aboutsummaryrefslogtreecommitdiff
path: root/discord/webhook
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/webhook
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/webhook')
-rw-r--r--discord/webhook/async_.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/discord/webhook/async_.py b/discord/webhook/async_.py
index 9d10f9e8..faea82a3 100644
--- a/discord/webhook/async_.py
+++ b/discord/webhook/async_.py
@@ -1327,7 +1327,7 @@ class Webhook(BaseWebhook):
if wait:
msg = self._create_message(data)
- if view is not MISSING:
+ if view is not MISSING and not view.is_finished():
message_id = None if msg is None else msg.id
self._state.store_view(view, message_id)