mirror of
https://github.com/ZeppelinBot/Zeppelin.git
synced 2025-05-10 20:35:02 +00:00
ZeppelinPluginBlueprint.configSchema is now required. Validate deep partial config schema before running config preprocessor.
This commit is contained in:
parent
3265a2a8da
commit
f6d55f1060
10 changed files with 50 additions and 12 deletions
|
@ -3,10 +3,13 @@ import { PluginData } from "knub";
|
|||
import { AllowedGuilds } from "src/data/AllowedGuilds";
|
||||
import { GuildInfoSaverPluginType } from "./types";
|
||||
import { MINUTES } from "src/utils";
|
||||
import * as t from "io-ts";
|
||||
|
||||
export const GuildInfoSaverPlugin = zeppelinPlugin<GuildInfoSaverPluginType>()("guild_info_saver", {
|
||||
showInDocs: false,
|
||||
|
||||
configSchema: t.type({}),
|
||||
|
||||
onLoad(pluginData) {
|
||||
const { state, guild } = pluginData;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue