mirror of
https://github.com/ZeppelinBot/Zeppelin.git
synced 2025-07-08 03:27:20 +00:00
refactor: move defaults to config schemas
This commit is contained in:
parent
09eb8e92f2
commit
83d35052c3
91 changed files with 450 additions and 888 deletions
|
@ -7,7 +7,7 @@ import { UsernameSaverPluginType, zUsernameSaverConfig } from "./types.js";
|
|||
export const UsernameSaverPlugin = guildPlugin<UsernameSaverPluginType>()({
|
||||
name: "username_saver",
|
||||
|
||||
configParser: (input) => zUsernameSaverConfig.parse(input),
|
||||
configSchema: zUsernameSaverConfig,
|
||||
|
||||
// prettier-ignore
|
||||
events: [
|
||||
|
|
|
@ -6,7 +6,7 @@ import { UsernameHistory } from "../../data/UsernameHistory.js";
|
|||
export const zUsernameSaverConfig = z.strictObject({});
|
||||
|
||||
export interface UsernameSaverPluginType extends BasePluginType {
|
||||
config: z.infer<typeof zUsernameSaverConfig>;
|
||||
configSchema: typeof zUsernameSaverConfig;
|
||||
state: {
|
||||
usernameHistory: UsernameHistory;
|
||||
updateQueue: Queue;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue