Fix error when loading old persist configs

This commit is contained in:
Dragory 2020-01-12 17:24:55 +02:00
parent 73dc0d00fb
commit 7c06a8cfc4
No known key found for this signature in database
GPG key ID: 5F387BA66DF8AAC1

View file

@ -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,
},
};
}