Skip to content

Commit 5b6be0c

Browse files
committed
types(Test): fix overloads for channel create
1 parent 637c8e0 commit 5b6be0c

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

typings/index.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -560,12 +560,12 @@ declare const guildChannelManager: GuildChannelManager;
560560
{
561561
type AnyChannel = TextChannel | VoiceChannel | CategoryChannel | NewsChannel | StoreChannel | StageChannel;
562562

563-
assertType<Promise<VoiceChannel>>(guildChannelManager.create('name', { type: 'voice' }));
564-
assertType<Promise<CategoryChannel>>(guildChannelManager.create('name', { type: 'category' }));
565-
assertType<Promise<TextChannel>>(guildChannelManager.create('name', { type: 'text' }));
566-
assertType<Promise<NewsChannel>>(guildChannelManager.create('name', { type: 'news' }));
567-
assertType<Promise<StoreChannel>>(guildChannelManager.create('name', { type: 'store' }));
568-
assertType<Promise<StageChannel>>(guildChannelManager.create('name', { type: 'stage' }));
563+
assertType<Promise<VoiceChannel>>(guildChannelManager.create('name', { type: 'GUILD_VOICE' }));
564+
assertType<Promise<CategoryChannel>>(guildChannelManager.create('name', { type: 'GUILD_CATEGORY' }));
565+
assertType<Promise<TextChannel>>(guildChannelManager.create('name', { type: 'GUILD_TEXT' }));
566+
assertType<Promise<NewsChannel>>(guildChannelManager.create('name', { type: 'GUILD_NEWS' }));
567+
assertType<Promise<StoreChannel>>(guildChannelManager.create('name', { type: 'GUILD_STORE' }));
568+
assertType<Promise<StageChannel>>(guildChannelManager.create('name', { type: 'GUILD_STAGE_VOICE' }));
569569

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

0 commit comments

Comments
 (0)