mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-18 20:43:30 +01:00
Copy paste fail
This commit is contained in:
@@ -136,7 +136,7 @@ var Cache = (function (_Array) {
|
|||||||
Cache.prototype.remove = function remove(data) {
|
Cache.prototype.remove = function remove(data) {
|
||||||
delete this[discrimCacheS][data[this[discrimS]]];
|
delete this[discrimCacheS][data[this[discrimS]]];
|
||||||
for (var i in this) {
|
for (var i in this) {
|
||||||
if (this[i][this[discrimS]] === old[this[discrimS]]) {
|
if (this[i][this[discrimS]] === data[this[discrimS]]) {
|
||||||
this.splice(i, 1);
|
this.splice(i, 1);
|
||||||
return this[i];
|
return this[i];
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -100,7 +100,7 @@ export default class Cache extends Array {
|
|||||||
remove(data) {
|
remove(data) {
|
||||||
delete this[discrimCacheS][data[this[discrimS]]];
|
delete this[discrimCacheS][data[this[discrimS]]];
|
||||||
for(var i in this) {
|
for(var i in this) {
|
||||||
if(this[i][this[discrimS]] === old[this[discrimS]]) {
|
if(this[i][this[discrimS]] === data[this[discrimS]]) {
|
||||||
this.splice(i, 1);
|
this.splice(i, 1);
|
||||||
return this[i];
|
return this[i];
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user