Browse Source

Changed Id from a ulong to generic TId, as per discussion.

pull/395/head
Sindre G. Langhus 8 years ago
parent
commit
2d67cf36ae
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      src/Discord.Net.Core/Utils/Cacheable.cs

+ 2
- 2
src/Discord.Net.Core/Utils/Cacheable.cs View File

@@ -20,7 +20,7 @@ namespace Discord
/// <summary>
/// The ID of this entity.
/// </summary>
public ulong Id { get; }
public TId Id { get; }
/// <summary>
/// The entity, if it could be pulled from cache.
/// </summary>
@@ -30,7 +30,7 @@ namespace Discord
public TEntity Value { 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;
Id = id;


Loading…
Cancel
Save