mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-17 12:03:31 +01:00
fix: TypeError in mixin function (#2506)
This commit is contained in:
committed by
Isabella
parent
8b83553462
commit
95b531742a
@@ -437,7 +437,7 @@ class Util {
|
|||||||
const func = Collection.prototype[prop];
|
const func = Collection.prototype[prop];
|
||||||
if (prop === 'constructor' || typeof func !== 'function') return;
|
if (prop === 'constructor' || typeof func !== 'function') return;
|
||||||
store.prototype[prop] = function(...args) {
|
store.prototype[prop] = function(...args) {
|
||||||
return func.apply(this._filtered, ...args);
|
return func.apply(this._filtered, args);
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user