mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-13 01:53:30 +01:00
Token Caching now works
This commit is contained in:
@@ -14,10 +14,11 @@ export default class Cache extends Array {
|
||||
if (key === this[discrimS])
|
||||
return this[discrimCacheS][value] || null;
|
||||
|
||||
var l = this.length;
|
||||
for (var i = 0; i < l; i++)
|
||||
if (this[i][key] == value)
|
||||
return this[i];
|
||||
for(var item of this){
|
||||
if(item[key] == value){
|
||||
return item;
|
||||
}
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user