Skip to content

Commit

Permalink
Fix Interaction.edit_original_message() message state
Browse files Browse the repository at this point in the history
  • Loading branch information
camelwater authored Aug 15, 2022
1 parent 369e44d commit 732a7ae
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion discord/interactions.py
Original file line number Diff line number Diff line change
Expand Up @@ -394,7 +394,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)

Expand Down

0 comments on commit 732a7ae

Please sign in to comment.