From e61eb519bf72bb712c3269e6701e4d66f799cbd1 Mon Sep 17 00:00:00 2001 From: GreemDev Date: Sat, 30 Aug 2025 04:52:42 -0400 Subject: [PATCH] Make Cacheable constructors public (#3177) --- src/Discord.Net.Core/Utils/Cacheable.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Discord.Net.Core/Utils/Cacheable.cs b/src/Discord.Net.Core/Utils/Cacheable.cs index c0d3c300..5898811a 100644 --- a/src/Discord.Net.Core/Utils/Cacheable.cs +++ b/src/Discord.Net.Core/Utils/Cacheable.cs @@ -29,8 +29,8 @@ namespace Discord /// public TEntity Value { get; } private Func> DownloadFunc { get; } - - internal Cacheable(TEntity value, TId id, bool hasValue, Func> downloadFunc) + + public Cacheable(TEntity value, TId id, bool hasValue, Func> downloadFunc) { Value = value; Id = id; @@ -84,7 +84,7 @@ namespace Discord public TCachedEntity Value { get; } private Func> DownloadFunc { get; } - internal Cacheable(TCachedEntity value, TId id, bool hasValue, Func> downloadFunc) + public Cacheable(TCachedEntity value, TId id, bool hasValue, Func> downloadFunc) { Value = value; Id = id;