mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-08-11 05:52:12 +00:00
Fix error when sending non-interactive views via partial webhooks
This commit is contained in:
parent
e715ad6419
commit
5b81a99b60
@ -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…
x
Reference in New Issue
Block a user