mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-19 21:13:30 +01:00
Fixed Cache.has function (#344)
* Fixed Cache.has function * Fixed Cache.has function * Fixed Cache.has function and ran grunt --dev
This commit is contained in:
committed by
abalabahaha
parent
db7dca65b2
commit
afc4c93119
@@ -59,8 +59,8 @@ var Cache = (function (_Array) {
|
|||||||
return null;
|
return null;
|
||||||
};
|
};
|
||||||
|
|
||||||
Cache.prototype.has = function has(object) {
|
Cache.prototype.has = function has(key, value) {
|
||||||
return !!this.get(this[discrimS], object[this[discrimS]]);
|
return !!this.get(key, value);
|
||||||
};
|
};
|
||||||
|
|
||||||
Cache.prototype.getAll = function getAll(key, value) {
|
Cache.prototype.getAll = function getAll(key, value) {
|
||||||
|
|||||||
@@ -36,8 +36,8 @@ export default class Cache extends Array {
|
|||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
has(object) {
|
has(key, value) {
|
||||||
return !!this.get(this[discrimS], object[this[discrimS]]);
|
return !!this.get(key, value);
|
||||||
}
|
}
|
||||||
|
|
||||||
getAll(key, value) {
|
getAll(key, value) {
|
||||||
|
|||||||
Reference in New Issue
Block a user