mirror of
https://github.com/danbulant/discord.js
synced 2026-05-27 22:11:53 +00:00
Fix circular dependency
This commit is contained in:
parent
f004e6ccca
commit
63b0c8d5cc
1 changed files with 2 additions and 1 deletions
|
|
@ -1,5 +1,5 @@
|
|||
const Collection = require('../util/Collection');
|
||||
const Structures = require('../util/Structures');
|
||||
let Structures;
|
||||
|
||||
/**
|
||||
* Manages the creation, retrieval and deletion of a specific data model.
|
||||
|
|
@ -8,6 +8,7 @@ const Structures = require('../util/Structures');
|
|||
class DataStore extends Collection {
|
||||
constructor(client, iterable, holds) {
|
||||
super();
|
||||
if(!Structures) Structures = require('../util/Structures');
|
||||
Object.defineProperty(this, 'client', { value: client });
|
||||
Object.defineProperty(this, 'holds', { value: Structures.get(holds) });
|
||||
if (iterable) for (const item of iterable) this.create(item);
|
||||
|
|
|
|||
Loading…
Reference in a new issue