Replace Structures.extend with set

This commit is contained in:
Schuyler Cebulskie
2017-11-20 01:11:19 -05:00
parent a2a4c3c196
commit 1e0ee2f8fa
2 changed files with 15 additions and 36 deletions

View File

@@ -10,7 +10,7 @@ class DataStore extends Collection {
super();
if (!Structures) Structures = require('../util/Structures');
Object.defineProperty(this, 'client', { value: client });
Object.defineProperty(this, 'holds', { value: Structures.get(holds) });
Object.defineProperty(this, 'holds', { value: Structures.get(holds.name) });
if (iterable) for (const item of iterable) this.create(item);
}