From d74278fc9e054b6f29ae321ddc221d30ac49458c Mon Sep 17 00:00:00 2001 From: Ryan Z <32146663+camelwater@users.noreply.github.com> Date: Tue, 23 Aug 2022 16:35:12 -0500 Subject: [PATCH] Fix `Interaction.edit_original_message()` InteractionMessage state (#1565) Co-authored-by: Lala Sabathil --- discord/interactions.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/discord/interactions.py b/discord/interactions.py index 41a65a7a4f..1b83725a65 100644 --- a/discord/interactions.py +++ b/discord/interactions.py @@ -397,7 +397,8 @@ async def edit_original_message( ) # The message channel types should always match - message = InteractionMessage(state=self._state, channel=self.channel, data=data) # type: ignore + state = _InteractionMessageState(self, self._state) + message = InteractionMessage(state=state, channel=self.channel, data=data) # type: ignore if view and not view.is_finished(): self._state.store_view(view, message.id)