Skip to content

Commit 6843bdf

Browse files
committed
test: add more tests
1 parent a878516 commit 6843bdf

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

packages/discord.js/typings/index.test-d.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1319,8 +1319,8 @@ declare const user: User;
13191319
declare 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);
13241324
expectType<TextChannel | NewsChannel | null>(threadChannelNotFromForum.parent);
13251325

13261326
// Test whether the structures implement send
@@ -1600,7 +1600,7 @@ declare const threadManager: ThreadManager;
16001600
}
16011601

16021602
declare const guildForumThreadManager: GuildForumThreadManager;
1603-
expectType<ForumChannel>(guildForumThreadManager.channel);
1603+
expectType<ForumChannel | MediaChannel>(guildForumThreadManager.channel);
16041604

16051605
declare const guildTextThreadManager: GuildTextThreadManager<
16061606
ChannelType.PublicThread | ChannelType.PrivateThread | ChannelType.AnnouncementThread
@@ -2113,7 +2113,7 @@ expectType<
21132113
>(TextBasedChannelTypes);
21142114
expectType<StageChannel | VoiceChannel>(VoiceBasedChannel);
21152115
expectType<GuildBasedChannel>(GuildBasedChannel);
2116-
expectType<CategoryChannel | NewsChannel | StageChannel | TextChannel | VoiceChannel | ForumChannel>(
2116+
expectType<CategoryChannel | NewsChannel | StageChannel | TextChannel | VoiceChannel | ForumChannel | MediaChannel>(
21172117
NonThreadGuildBasedChannel,
21182118
);
21192119
expectType<GuildTextBasedChannel>(GuildTextBasedChannel);

0 commit comments

Comments
 (0)