From 383f9b79042c855d617ab5d6ca657fcbcec383c2 Mon Sep 17 00:00:00 2001 From: DA-344 <108473820+DA-344@users.noreply.github.com> Date: Tue, 18 Feb 2025 16:30:57 +0100 Subject: [PATCH] Fix InteractionCallbackResponse.resource being created with a ConnectionState instead of _InteractionMessageState --- discord/interactions.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/discord/interactions.py b/discord/interactions.py index b9d9a4d11..a983d8ab0 100644 --- a/discord/interactions.py +++ b/discord/interactions.py @@ -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, )