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 { UsernameHistory } from "src/data/UsernameHistory";
|
|||
import { Queue } from "src/Queue";
|
||||
import { UsernameSaverPluginType } from "./types";
|
||||
import { MessageCreateUpdateUsernameEvt, VoiceChannelJoinUpdateUsernameEvt } from "./events/UpdateUsernameEvts";
|
||||
import * as t from "io-ts";
|
||||
|
||||
export const UsernameSaverPlugin = zeppelinPlugin<UsernameSaverPluginType>()("username_saver", {
|
||||
showInDocs: false,
|
||||
|
||||
configSchema: t.type({}),
|
||||
|
||||
// prettier-ignore
|
||||
events: [
|
||||
MessageCreateUpdateUsernameEvt,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue