mirror of
https://github.com/ZeppelinBot/Zeppelin.git
synced 2025-03-16 22:21:51 +00:00
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({
|
const ConfigSchema = t.type({
|
||||||
persisted_roles: t.array(t.string),
|
persisted_roles: t.array(t.string),
|
||||||
persist_nicknames: t.boolean,
|
persist_nicknames: t.boolean,
|
||||||
|
persist_voice_mutes: t.boolean, // Deprecated, here to not break old configs
|
||||||
});
|
});
|
||||||
type TConfigSchema = t.TypeOf<typeof ConfigSchema>;
|
type TConfigSchema = t.TypeOf<typeof ConfigSchema>;
|
||||||
|
|
||||||
|
@ -33,6 +34,7 @@ export class PersistPlugin extends ZeppelinPlugin<TConfigSchema> {
|
||||||
config: {
|
config: {
|
||||||
persisted_roles: [],
|
persisted_roles: [],
|
||||||
persist_nicknames: false,
|
persist_nicknames: false,
|
||||||
|
persist_voice_mutes: false,
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue