Reimplement Structures.get

This commit is contained in:
Schuyler Cebulskie
2017-11-19 23:00:56 -05:00
parent 6d53d893a8
commit f004e6ccca
2 changed files with 12 additions and 1 deletions

View File

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