mirror of
https://github.com/ZeppelinBot/Zeppelin.git
synced 2025-06-08 00:05:01 +00:00
Various fixes
This commit is contained in:
parent
2c0e4b37ca
commit
cafcc2839e
15 changed files with 45 additions and 68 deletions
|
@ -1,29 +1,12 @@
|
|||
import { BaseConfig, Knub } from "knub";
|
||||
import { Knub } from "knub";
|
||||
import z from "zod";
|
||||
import { zSnowflake } from "./utils";
|
||||
|
||||
export interface ZeppelinGuildConfig extends BaseConfig {
|
||||
success_emoji?: string;
|
||||
error_emoji?: string;
|
||||
|
||||
// Deprecated
|
||||
timezone?: string;
|
||||
date_formats?: any;
|
||||
}
|
||||
|
||||
export const zZeppelinGuildConfig = z.strictObject({
|
||||
// From BaseConfig
|
||||
prefix: z.string().optional(),
|
||||
levels: z.record(zSnowflake, z.number()).optional(),
|
||||
plugins: z.record(z.string(), z.unknown()).optional(),
|
||||
|
||||
// From ZeppelinGuildConfig
|
||||
success_emoji: z.string().optional(),
|
||||
error_emoji: z.string().optional(),
|
||||
|
||||
// Deprecated
|
||||
timezone: z.string().optional(),
|
||||
date_formats: z.unknown().optional(),
|
||||
});
|
||||
|
||||
export type TZeppelinKnub = Knub;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue