mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-04-19 07:26:17 +00:00
Fix InteractionCallbackResponse.resource having incorrect state
Fix InteractionCallbackResponse.resource being created with a ConnectionState instead of _InteractionMessageState
This commit is contained in:
parent
470323493e
commit
0e4f06103e
@ -727,7 +727,7 @@ class InteractionCallbackResponse(Generic[ClientT]):
|
||||
activity_instance = resource.get('activity_instance')
|
||||
if message is not None:
|
||||
self.resource = InteractionMessage(
|
||||
state=self._state,
|
||||
state=_InteractionMessageState(self._parent, self._state), # pyright: ignore[reportArgumentType]
|
||||
channel=self._parent.channel, # type: ignore # channel should be the correct type here
|
||||
data=message,
|
||||
)
|
||||
|
Loading…
x
Reference in New Issue
Block a user