@@ -1319,8 +1319,8 @@ declare const user: User;
13191319declare const guildMember : GuildMember ;
13201320
13211321// Test thread channels' parent inference
1322- expectType < TextChannel | NewsChannel | ForumChannel | null > ( threadChannel . parent ) ;
1323- expectType < ForumChannel | null > ( threadChannelFromForum . parent ) ;
1322+ expectType < TextChannel | NewsChannel | ForumChannel | MediaChannel | null > ( threadChannel . parent ) ;
1323+ expectType < ForumChannel | MediaChannel | null > ( threadChannelFromForum . parent ) ;
13241324expectType < TextChannel | NewsChannel | null > ( threadChannelNotFromForum . parent ) ;
13251325
13261326// Test whether the structures implement send
@@ -1600,7 +1600,7 @@ declare const threadManager: ThreadManager;
16001600}
16011601
16021602declare const guildForumThreadManager : GuildForumThreadManager ;
1603- expectType < ForumChannel > ( guildForumThreadManager . channel ) ;
1603+ expectType < ForumChannel | MediaChannel > ( guildForumThreadManager . channel ) ;
16041604
16051605declare const guildTextThreadManager : GuildTextThreadManager <
16061606 ChannelType . PublicThread | ChannelType . PrivateThread | ChannelType . AnnouncementThread
@@ -2113,7 +2113,7 @@ expectType<
21132113> ( TextBasedChannelTypes ) ;
21142114expectType < StageChannel | VoiceChannel > ( VoiceBasedChannel ) ;
21152115expectType < GuildBasedChannel > ( GuildBasedChannel ) ;
2116- expectType < CategoryChannel | NewsChannel | StageChannel | TextChannel | VoiceChannel | ForumChannel > (
2116+ expectType < CategoryChannel | NewsChannel | StageChannel | TextChannel | VoiceChannel | ForumChannel | MediaChannel > (
21172117 NonThreadGuildBasedChannel ,
21182118) ;
21192119expectType < GuildTextBasedChannel > ( GuildTextBasedChannel ) ;
0 commit comments