From cce59f596d5a1e0633a964e85ce9819385d5383c Mon Sep 17 00:00:00 2001 From: Dragory <2606411+Dragory@users.noreply.github.com> Date: Fri, 28 Aug 2020 02:01:35 +0300 Subject: [PATCH] Fix --- backend/src/index.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/backend/src/index.ts b/backend/src/index.ts index c54ef13f..b10ed4ff 100644 --- a/backend/src/index.ts +++ b/backend/src/index.ts @@ -153,7 +153,11 @@ connect().then(async () => { * Dependencies are also automatically loaded by Knub. */ async getEnabledGuildPlugins(ctx, plugins): Promise { - const configuredPlugins = ctx.config.plugins || []; + if (!ctx.config || !ctx.config.plugins) { + return []; + } + + const configuredPlugins = ctx.config.plugins; const basePluginNames = baseGuildPlugins.map(p => p.name); return Array.from(plugins.keys()).filter(pluginName => {