types(GuildChannelManager): correct fetch return type (v13) (#8551)

This commit is contained in:
RedGuy12
2022-09-13 02:10:47 -05:00
committed by GitHub
parent e6ee7d8374
commit f4e81330bf
3 changed files with 9 additions and 6 deletions

View File

@@ -908,9 +908,9 @@ declare const guildChannelManager: GuildChannelManager;
expectType<Promise<StoreChannel>>(guildChannelManager.create('name', { type: 'GUILD_STORE' }));
expectType<Promise<StageChannel>>(guildChannelManager.create('name', { type: 'GUILD_STAGE_VOICE' }));
expectType<Promise<Collection<Snowflake, AnyChannel>>>(guildChannelManager.fetch());
expectType<Promise<Collection<Snowflake, AnyChannel>>>(guildChannelManager.fetch(undefined, {}));
expectType<Promise<AnyChannel | null>>(guildChannelManager.fetch('0'));
expectType<Promise<Collection<Snowflake, AnyChannel | null>>>(guildChannelManager.fetch());
expectType<Promise<Collection<Snowflake, AnyChannel | null>>>(guildChannelManager.fetch(undefined, {}));
expectType<Promise<GuildBasedChannel | null>>(guildChannelManager.fetch('0'));
}
declare const roleManager: RoleManager;