mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-12 09:33:32 +01:00
removed ES6 function calls
This commit is contained in:
@@ -55,7 +55,11 @@ export default class Cache extends Array {
|
||||
|
||||
if (item) {
|
||||
var index = this.indexOf(item);
|
||||
Object.assign(this[index], data);
|
||||
for (var dataIndex in data) {
|
||||
if (data.hasOwnProperty(dataIndex)) {
|
||||
this[index][dataIndex] = data[dataIndex];
|
||||
}
|
||||
}
|
||||
this[discrimCacheS][data[this[discrimS]]] = this[index];
|
||||
return this[index];
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user