Browse Source

Fix error when sending non-interactive views via partial webhooks

master
Mohammed Aman Jukaku 16 hours ago
committed by GitHub
parent
commit
5b81a99b60
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 2
      discord/webhook/async_.py

2
discord/webhook/async_.py

@ -1872,7 +1872,7 @@ class Webhook(BaseWebhook):
if wait:
msg = self._create_message(data, thread=thread)
if view is not MISSING and not view.is_finished():
if view is not MISSING and not view.is_finished() and view.is_dispatchable():
message_id = None if msg is None else msg.id
self._state.store_view(view, message_id)

Loading…
Cancel
Save