From 36cb749a57afef619c82693c23c4ea14fd1e5029 Mon Sep 17 00:00:00 2001 From: DA-344 <108473820+DA-344@users.noreply.github.com> Date: Tue, 21 Jan 2025 16:47:01 +0100 Subject: [PATCH] chore: Remove channel= param --- discord/interactions.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/discord/interactions.py b/discord/interactions.py index a77889c95..2d444499b 100644 --- a/discord/interactions.py +++ b/discord/interactions.py @@ -759,6 +759,8 @@ class InteractionCallbackResource(Generic[ClientT]): except KeyError: pass + self._parent.interaction._message = self.message + class InteractionCallbackResponse(Generic[ClientT]): """Represents a Discord response to an interaction. @@ -940,7 +942,6 @@ class InteractionResponse(Generic[ClientT]): if response: return InteractionCallbackResponse( parent=parent, - channel=parent.channel, # type: ignore data=response, ) @@ -1166,7 +1167,6 @@ class InteractionResponse(Generic[ClientT]): if response: return InteractionCallbackResponse( parent=parent, - channel=parent.channel, # type: ignore data=response, ) @@ -1345,7 +1345,6 @@ class InteractionResponse(Generic[ClientT]): if response: return InteractionCallbackResponse( parent=parent, - channel=parent.channel, # type: ignore data=response, ) @@ -1412,7 +1411,6 @@ class InteractionResponse(Generic[ClientT]): if response: return InteractionCallbackResponse( parent=parent, - channel=parent.channel, # type: ignore data=response, )