Skip to content

Commit

Permalink
Fix Interaction.edit_original_message() InteractionMessage state (#…
Browse files Browse the repository at this point in the history
…1565)

Co-authored-by: Lala Sabathil <[email protected]>
  • Loading branch information
camelwater and Lulalaby authored Aug 23, 2022
1 parent 8475f90 commit d74278f
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 @@ -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)

Expand Down

0 comments on commit d74278f

Please sign in to comment.