mirror of
https://github.com/ZeppelinBot/Zeppelin.git
synced 2025-05-20 00:05:04 +00:00
ZeppelinPluginBlueprint.configSchema is now required. Validate deep partial config schema before running config preprocessor.
This commit is contained in:
parent
0c2b9675b2
commit
1e44f811fc
10 changed files with 50 additions and 12 deletions
|
@ -134,7 +134,7 @@ connect().then(async () => {
|
|||
async getEnabledPlugins(this: Knub, guildId, guildConfig): Promise<string[]> {
|
||||
const configuredPlugins = guildConfig.plugins || {};
|
||||
const pluginNames: string[] = Array.from(this.guildPlugins.keys());
|
||||
const plugins: ZeppelinPlugin[] = Array.from(this.guildPlugins.values());
|
||||
const plugins = Array.from(this.guildPlugins.values()) as ZeppelinPlugin[];
|
||||
|
||||
return pluginNames.filter(pluginName => {
|
||||
return configuredPlugins[pluginName] && configuredPlugins[pluginName].enabled !== false;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue