Skip to content

Commit

Permalink
types(Test): fix overloads for channel create
Browse files Browse the repository at this point in the history
  • Loading branch information
iCrawl committed Jul 8, 2021
1 parent 637c8e0 commit 5b6be0c
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions typings/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -560,12 +560,12 @@ declare const guildChannelManager: GuildChannelManager;
{
type AnyChannel = TextChannel | VoiceChannel | CategoryChannel | NewsChannel | StoreChannel | StageChannel;

assertType<Promise<VoiceChannel>>(guildChannelManager.create('name', { type: 'voice' }));
assertType<Promise<CategoryChannel>>(guildChannelManager.create('name', { type: 'category' }));
assertType<Promise<TextChannel>>(guildChannelManager.create('name', { type: 'text' }));
assertType<Promise<NewsChannel>>(guildChannelManager.create('name', { type: 'news' }));
assertType<Promise<StoreChannel>>(guildChannelManager.create('name', { type: 'store' }));
assertType<Promise<StageChannel>>(guildChannelManager.create('name', { type: 'stage' }));
assertType<Promise<VoiceChannel>>(guildChannelManager.create('name', { type: 'GUILD_VOICE' }));
assertType<Promise<CategoryChannel>>(guildChannelManager.create('name', { type: 'GUILD_CATEGORY' }));
assertType<Promise<TextChannel>>(guildChannelManager.create('name', { type: 'GUILD_TEXT' }));
assertType<Promise<NewsChannel>>(guildChannelManager.create('name', { type: 'GUILD_NEWS' }));
assertType<Promise<StoreChannel>>(guildChannelManager.create('name', { type: 'GUILD_STORE' }));
assertType<Promise<StageChannel>>(guildChannelManager.create('name', { type: 'GUILD_STAGE_VOICE' }));

assertType<Promise<Collection<Snowflake, AnyChannel>>>(guildChannelManager.fetch());
assertType<Promise<Collection<Snowflake, AnyChannel>>>(guildChannelManager.fetch(undefined, {}));
Expand Down

0 comments on commit 5b6be0c

Please sign in to comment.