Skip to content

Commit 21eee22

Browse files
committed
MediaChannel
1 parent e4946ec commit 21eee22

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

discord/channel.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3232,7 +3232,9 @@ def _guild_channel_factory(channel_type: int):
32323232
return TextChannel, value
32333233
elif value is ChannelType.stage_voice:
32343234
return StageChannel, value
3235-
elif value is ChannelType.forum:
3235+
elif value is ChannelType.directory:
3236+
return None, value # todo: Add DirectoryChannel when applicable
3237+
elif value is ChannelType.forum or value is ChannelType.media:
32363238
return ForumChannel, value
32373239
else:
32383240
return None, value

0 commit comments

Comments
 (0)