From 3e3674b1af200eb3947018f210bdf49b0e200b1b Mon Sep 17 00:00:00 2001 From: bdistin Date: Thu, 30 Nov 2017 13:39:58 -0600 Subject: [PATCH] Fix channels.resolve (#2137) --- src/stores/DataStore.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/stores/DataStore.js b/src/stores/DataStore.js index 6f3e74146..c4256dfe2 100644 --- a/src/stores/DataStore.js +++ b/src/stores/DataStore.js @@ -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.name) }); + Object.defineProperty(this, 'holds', { value: Structures.get(holds.name) || holds }); if (iterable) for (const item of iterable) this.create(item); }