3
0
Fork 0
mirror of https://github.com/ZeppelinBot/Zeppelin.git synced 2025-05-19 16:05:01 +00:00
This commit is contained in:
Dragory 2020-08-28 02:01:35 +03:00
parent 2d87108939
commit d62c6e17d7

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 => {