Skip to content

Commit e61eb51

Browse files
authored
Make Cacheable constructors public (#3177)
1 parent 5273f1d commit e61eb51

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Discord.Net.Core/Utils/Cacheable.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@ public struct Cacheable<TEntity, TId>
2929
/// </remarks>
3030
public TEntity Value { get; }
3131
private Func<Task<TEntity>> DownloadFunc { get; }
32-
33-
internal Cacheable(TEntity value, TId id, bool hasValue, Func<Task<TEntity>> downloadFunc)
32+
33+
public Cacheable(TEntity value, TId id, bool hasValue, Func<Task<TEntity>> downloadFunc)
3434
{
3535
Value = value;
3636
Id = id;
@@ -84,7 +84,7 @@ public struct Cacheable<TCachedEntity, TDownloadableEntity, TRelationship, TId>
8484
public TCachedEntity Value { get; }
8585
private Func<Task<TDownloadableEntity>> DownloadFunc { get; }
8686

87-
internal Cacheable(TCachedEntity value, TId id, bool hasValue, Func<Task<TDownloadableEntity>> downloadFunc)
87+
public Cacheable(TCachedEntity value, TId id, bool hasValue, Func<Task<TDownloadableEntity>> downloadFunc)
8888
{
8989
Value = value;
9090
Id = id;

0 commit comments

Comments
 (0)