From 2d67cf36ae01e8fe9bf8badf2ecca3d8e60dcd07 Mon Sep 17 00:00:00 2001 From: "Sindre G. Langhus" Date: Sat, 24 Dec 2016 02:25:37 +0100 Subject: [PATCH] Changed Id from a ulong to generic TId, as per discussion. --- src/Discord.Net.Core/Utils/Cacheable.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Discord.Net.Core/Utils/Cacheable.cs b/src/Discord.Net.Core/Utils/Cacheable.cs index ff63e4c69..48af580d9 100644 --- a/src/Discord.Net.Core/Utils/Cacheable.cs +++ b/src/Discord.Net.Core/Utils/Cacheable.cs @@ -20,7 +20,7 @@ namespace Discord /// /// The ID of this entity. /// - public ulong Id { get; } + public TId Id { get; } /// /// The entity, if it could be pulled from cache. /// @@ -30,7 +30,7 @@ namespace Discord public TEntity Value { get; } private Func> DownloadFunc { get; } - internal Cacheable(TEntity value, ulong id, Func> downloadFunc) + internal Cacheable(TEntity value, TId id, Func> downloadFunc) { Value = value; Id = id;