Browse Source

chore: Remove channel= param

pull/9957/head
DA-344 5 months ago
parent
commit
36cb749a57
  1. 6
      discord/interactions.py

6
discord/interactions.py

@ -759,6 +759,8 @@ class InteractionCallbackResource(Generic[ClientT]):
except KeyError: except KeyError:
pass pass
self._parent.interaction._message = self.message
class InteractionCallbackResponse(Generic[ClientT]): class InteractionCallbackResponse(Generic[ClientT]):
"""Represents a Discord response to an interaction. """Represents a Discord response to an interaction.
@ -940,7 +942,6 @@ class InteractionResponse(Generic[ClientT]):
if response: if response:
return InteractionCallbackResponse( return InteractionCallbackResponse(
parent=parent, parent=parent,
channel=parent.channel, # type: ignore
data=response, data=response,
) )
@ -1166,7 +1167,6 @@ class InteractionResponse(Generic[ClientT]):
if response: if response:
return InteractionCallbackResponse( return InteractionCallbackResponse(
parent=parent, parent=parent,
channel=parent.channel, # type: ignore
data=response, data=response,
) )
@ -1345,7 +1345,6 @@ class InteractionResponse(Generic[ClientT]):
if response: if response:
return InteractionCallbackResponse( return InteractionCallbackResponse(
parent=parent, parent=parent,
channel=parent.channel, # type: ignore
data=response, data=response,
) )
@ -1412,7 +1411,6 @@ class InteractionResponse(Generic[ClientT]):
if response: if response:
return InteractionCallbackResponse( return InteractionCallbackResponse(
parent=parent, parent=parent,
channel=parent.channel, # type: ignore
data=response, data=response,
) )

Loading…
Cancel
Save