mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-08-31 07:21:41 +00:00
Fix InteractionResponse.edit_message not working with modal submits
This commit is contained in:
parent
e8506f39b3
commit
1f8687505f
@ -610,7 +610,7 @@ class InteractionResponse:
|
|||||||
"""|coro|
|
"""|coro|
|
||||||
|
|
||||||
Responds to this interaction by editing the original message of
|
Responds to this interaction by editing the original message of
|
||||||
a component interaction.
|
a component or modal interaction.
|
||||||
|
|
||||||
Parameters
|
Parameters
|
||||||
-----------
|
-----------
|
||||||
@ -652,7 +652,7 @@ class InteractionResponse:
|
|||||||
msg = parent.message
|
msg = parent.message
|
||||||
state = parent._state
|
state = parent._state
|
||||||
message_id = msg.id if msg else None
|
message_id = msg.id if msg else None
|
||||||
if parent.type is not InteractionType.component:
|
if parent.type not in (InteractionType.component, InteractionType.modal_submit):
|
||||||
return
|
return
|
||||||
|
|
||||||
if view is not MISSING and message_id is not None:
|
if view is not MISSING and message_id is not None:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user