mirror of
https://github.com/danbulant/discord.js
synced 2026-05-27 22:11:53 +00:00
fix(Util): circular reference
This commit is contained in:
parent
bcdb8011e3
commit
41a1dee533
1 changed files with 1 additions and 1 deletions
|
|
@ -1,4 +1,3 @@
|
|||
const Collection = require('./Collection');
|
||||
const { Colors, DefaultOptions, Endpoints } = require('./Constants');
|
||||
const fetch = require('node-fetch');
|
||||
const { Error: DiscordError, RangeError, TypeError } = require('../errors');
|
||||
|
|
@ -403,6 +402,7 @@ class Util {
|
|||
*/
|
||||
/* eslint-disable func-names */
|
||||
static mixin(store, ignored) {
|
||||
const Collection = require('./Collection');
|
||||
Object.getOwnPropertyNames(Collection.prototype)
|
||||
.concat(Object.getOwnPropertyNames(Map.prototype)).forEach(prop => {
|
||||
if (ignored.includes(prop)) return;
|
||||
|
|
|
|||
Loading…
Reference in a new issue