We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
MediaChannel
1 parent e4946ec commit 21eee22Copy full SHA for 21eee22
discord/channel.py
@@ -3232,7 +3232,9 @@ def _guild_channel_factory(channel_type: int):
3232
return TextChannel, value
3233
elif value is ChannelType.stage_voice:
3234
return StageChannel, value
3235
- elif value is ChannelType.forum:
+ 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:
3238
return ForumChannel, value
3239
else:
3240
return None, value
0 commit comments