Make Cacheable constructors public (#3177)

This commit is contained in:
GreemDev
2025-08-30 04:52:42 -04:00
committed by GitHub
parent 5273f1df98
commit e61eb519bf

View File

@@ -29,8 +29,8 @@ namespace Discord
/// </remarks> /// </remarks>
public TEntity Value { get; } public TEntity Value { get; }
private Func<Task<TEntity>> DownloadFunc { get; } private Func<Task<TEntity>> DownloadFunc { get; }
internal Cacheable(TEntity value, TId id, bool hasValue, Func<Task<TEntity>> downloadFunc) public Cacheable(TEntity value, TId id, bool hasValue, Func<Task<TEntity>> downloadFunc)
{ {
Value = value; Value = value;
Id = id; Id = id;
@@ -84,7 +84,7 @@ namespace Discord
public TCachedEntity Value { get; } public TCachedEntity Value { get; }
private Func<Task<TDownloadableEntity>> DownloadFunc { get; } private Func<Task<TDownloadableEntity>> DownloadFunc { get; }
internal Cacheable(TCachedEntity value, TId id, bool hasValue, Func<Task<TDownloadableEntity>> downloadFunc) public Cacheable(TCachedEntity value, TId id, bool hasValue, Func<Task<TDownloadableEntity>> downloadFunc)
{ {
Value = value; Value = value;
Id = id; Id = id;