Skip to content

Commit 00e2f55

Browse files
committed
♻️ Remove unnecessary logic
1 parent 2577ac6 commit 00e2f55

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

discord/interactions.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -268,10 +268,6 @@ def _from_data(self, data: InteractionPayload):
268268
factory, ch_type = _threaded_channel_factory(data_ch_type)
269269
if ch_type in (ChannelType.group, ChannelType.private):
270270
self.channel = factory(me=self.user, data=channel, state=self._state)
271-
elif self.guild:
272-
self.channel = self.guild._resolve_channel(self.channel_id) or factory(
273-
guild=self.guild, state=self._state, data=channel
274-
)
275271

276272
if self.channel is None and self.guild:
277273
self.channel = self.guild._resolve_channel(self.channel_id)

0 commit comments

Comments
 (0)