Fix error when loading old persist configs
This commit is contained in:
parent
73dc0d00fb
commit
7c06a8cfc4
1 changed files with 2 additions and 0 deletions
|
@ -11,6 +11,7 @@ import * as t from "io-ts";
|
|||
const ConfigSchema = t.type({
|
||||
persisted_roles: t.array(t.string),
|
||||
persist_nicknames: t.boolean,
|
||||
persist_voice_mutes: t.boolean, // Deprecated, here to not break old configs
|
||||
});
|
||||
type TConfigSchema = t.TypeOf<typeof ConfigSchema>;
|
||||
|
||||
|
@ -33,6 +34,7 @@ export class PersistPlugin extends ZeppelinPlugin<TConfigSchema> {
|
|||
config: {
|
||||
persisted_roles: [],
|
||||
persist_nicknames: false,
|
||||
persist_voice_mutes: false,
|
||||
},
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue