mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-07-05 17:41:53 +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')
|
activity_instance = resource.get('activity_instance')
|
||||||
if message is not None:
|
if message is not None:
|
||||||
self.resource = InteractionMessage(
|
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
|
channel=self._parent.channel, # type: ignore # channel should be the correct type here
|
||||||
data=message,
|
data=message,
|
||||||
)
|
)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user