mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-16 19:43:29 +01:00
Attempting forceFetchUser callback
This commit is contained in:
@@ -18,6 +18,7 @@ var Cache = (function (_Array) {
|
||||
_Array.call(this);
|
||||
this[discrimS] = discrim || "id";
|
||||
this[discrimCacheS] = {};
|
||||
this.limit = limit;
|
||||
}
|
||||
|
||||
Cache.prototype.get = function get(key, value) {
|
||||
@@ -101,7 +102,7 @@ var Cache = (function (_Array) {
|
||||
};
|
||||
|
||||
Cache.prototype.add = function add(data) {
|
||||
var cacheKey = this[discrimS] === "id" ? data.id : data[this[discrimS]];
|
||||
var cacheKey = data[this[discrimS]];
|
||||
if (this[discrimCacheS][cacheKey]) {
|
||||
return this[discrimCacheS][cacheKey];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user