fix(Structures): remove Structures (#6027)

This commit is contained in:
1Computer1
2021-07-04 07:26:35 -04:00
committed by GitHub
parent db60e367b4
commit ab0b3b9a07
11 changed files with 31 additions and 193 deletions

View File

@@ -3,8 +3,6 @@
const BaseManager = require('./BaseManager');
const { Error } = require('../errors');
let Structures;
/**
* Manages the API methods of a data model along with a collection of instances.
* @extends {BaseManager}
@@ -14,8 +12,6 @@ class DataManager extends BaseManager {
constructor(client, holds) {
super(client);
if (!Structures) Structures = require('../util/Structures');
/**
* The data structure belonging to this manager.
* @name DataManager#holds
@@ -23,7 +19,7 @@ class DataManager extends BaseManager {
* @private
* @readonly
*/
Object.defineProperty(this, 'holds', { value: Structures.get(holds.name) ?? holds });
Object.defineProperty(this, 'holds', { value: holds });
}
/**