Skip to content

Commit d74278f

Browse files
camelwaterLulalaby
andauthored
Fix Interaction.edit_original_message() InteractionMessage state (#1565)
Co-authored-by: Lala Sabathil <[email protected]>
1 parent 8475f90 commit d74278f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

discord/interactions.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -397,7 +397,8 @@ async def edit_original_message(
397397
)
398398

399399
# The message channel types should always match
400-
message = InteractionMessage(state=self._state, channel=self.channel, data=data) # type: ignore
400+
state = _InteractionMessageState(self, self._state)
401+
message = InteractionMessage(state=state, channel=self.channel, data=data) # type: ignore
401402
if view and not view.is_finished():
402403
self._state.store_view(view, message.id)
403404

0 commit comments

Comments
 (0)