Skip to content

Commit

Permalink
♻️ Remove unnecessary logic
Browse files Browse the repository at this point in the history
  • Loading branch information
Paillat-dev committed Dec 27, 2024
1 parent 2577ac6 commit 00e2f55
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions discord/interactions.py
Original file line number Diff line number Diff line change
Expand Up @@ -268,10 +268,6 @@ def _from_data(self, data: InteractionPayload):
factory, ch_type = _threaded_channel_factory(data_ch_type)
if ch_type in (ChannelType.group, ChannelType.private):
self.channel = factory(me=self.user, data=channel, state=self._state)
elif self.guild:
self.channel = self.guild._resolve_channel(self.channel_id) or factory(
guild=self.guild, state=self._state, data=channel
)

if self.channel is None and self.guild:
self.channel = self.guild._resolve_channel(self.channel_id)
Expand Down

0 comments on commit 00e2f55

Please sign in to comment.