Fix state parameter in Interaction.edit_original_message

This commit is contained in:
Dawid K
2022-03-13 02:50:01 +01:00
committed by GitHub
parent 342652c8ad
commit 5f2d9a9ffa

View File

@ -381,7 +381,8 @@ class Interaction:
)
# 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)
return message