Skip to content

Commit

Permalink
chore: Remove channel= param
Browse files Browse the repository at this point in the history
  • Loading branch information
DA-344 committed Jan 21, 2025
1 parent 3585be9 commit 36cb749
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions discord/interactions.py
Original file line number Diff line number Diff line change
Expand Up @@ -759,6 +759,8 @@ def _update(self, data: InteractionCallbackResourcePayload) -> None:
except KeyError:
pass

self._parent.interaction._message = self.message


class InteractionCallbackResponse(Generic[ClientT]):
"""Represents a Discord response to an interaction.
Expand Down Expand Up @@ -940,7 +942,6 @@ async def defer(
if response:
return InteractionCallbackResponse(
parent=parent,
channel=parent.channel, # type: ignore
data=response,
)

Expand Down Expand Up @@ -1166,7 +1167,6 @@ async def inner_call(delay: float = delete_after):
if response:
return InteractionCallbackResponse(
parent=parent,
channel=parent.channel, # type: ignore
data=response,
)

Expand Down Expand Up @@ -1345,7 +1345,6 @@ async def inner_call(delay: float = delete_after):
if response:
return InteractionCallbackResponse(
parent=parent,
channel=parent.channel, # type: ignore
data=response,
)

Expand Down Expand Up @@ -1412,7 +1411,6 @@ async def send_modal(
if response:
return InteractionCallbackResponse(
parent=parent,
channel=parent.channel, # type: ignore
data=response,
)

Expand Down

0 comments on commit 36cb749

Please sign in to comment.