Fix channels.resolve (#2137)

This commit is contained in:
bdistin
2017-11-30 13:39:58 -06:00
committed by Schuyler Cebulskie
parent 134ef7a61b
commit 3e3674b1af

View File

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