Changed Id from a ulong to generic TId, as per discussion.
This commit is contained in:
@@ -20,7 +20,7 @@ namespace Discord
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// The ID of this entity.
|
/// The ID of this entity.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public ulong Id { get; }
|
public TId Id { get; }
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// The entity, if it could be pulled from cache.
|
/// The entity, if it could be pulled from cache.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
@@ -30,7 +30,7 @@ namespace Discord
|
|||||||
public TEntity Value { get; }
|
public TEntity Value { get; }
|
||||||
private Func<Task<TEntity>> DownloadFunc { get; }
|
private Func<Task<TEntity>> DownloadFunc { get; }
|
||||||
|
|
||||||
internal Cacheable(TEntity value, ulong id, Func<Task<TEntity>> downloadFunc)
|
internal Cacheable(TEntity value, TId id, Func<Task<TEntity>> downloadFunc)
|
||||||
{
|
{
|
||||||
Value = value;
|
Value = value;
|
||||||
Id = id;
|
Id = id;
|
||||||
|
|||||||
Reference in New Issue
Block a user