mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-05-12 16:59:50 +00:00
Fix state parameter in Interaction.edit_original_message
This commit is contained in:
parent
342652c8ad
commit
5f2d9a9ffa
@ -381,7 +381,8 @@ class Interaction:
|
|||||||
)
|
)
|
||||||
|
|
||||||
# The message channel types should always match
|
# 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():
|
if view and not view.is_finished():
|
||||||
self._state.store_view(view, message.id)
|
self._state.store_view(view, message.id)
|
||||||
return message
|
return message
|
||||||
|
Loading…
x
Reference in New Issue
Block a user