Skip to content

Commit

Permalink
Update index.test-d.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
RedGuy12 committed Mar 25, 2024
1 parent dd001a6 commit 241bda6
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions packages/discord.js/typings/index.test-d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1630,8 +1630,12 @@ declare const guildChannelManager: GuildChannelManager;

declare const threadManager: ThreadManager;
{
expectType<Promise<ForumThreadChannel | TextThreadChannel | null>>(threadManager.fetch('12345678901234567'));
expectType<Promise<ForumThreadChannel | TextThreadChannel | null>>(threadManager.fetch('12345678901234567', { cache: true, force: false }));
expectType<Promise<ForumThreadChannel | TextThreadChannel | null>>(
threadManager.fetch('12345678901234567'),
);
expectType<Promise<ForumThreadChannel | TextThreadChannel | null>>(
threadManager.fetch('12345678901234567', { cache: true, force: false }),
);
expectType<Promise<FetchedThreads>>(threadManager.fetch());
expectType<Promise<FetchedThreads>>(threadManager.fetch({}));
expectType<Promise<FetchedThreadsMore>>(threadManager.fetch({ archived: { limit: 4 } }));
Expand Down

0 comments on commit 241bda6

Please sign in to comment.