This commit is contained in:
Dragory 2020-08-28 02:01:35 +03:00
parent 60f73bd752
commit cce59f596d
No known key found for this signature in database
GPG key ID: 5F387BA66DF8AAC1

View file

@ -153,7 +153,11 @@ connect().then(async () => {
* Dependencies are also automatically loaded by Knub.
*/
async getEnabledGuildPlugins(ctx, plugins): Promise<string[]> {
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 => {