mirror of
https://github.com/ZeppelinBot/Zeppelin.git
synced 2025-06-08 00:05:01 +00:00
Merge branch '240811_application_commands_merge_2' into next
This commit is contained in:
commit
43b8017985
279 changed files with 6192 additions and 3044 deletions
|
@ -1,29 +1,12 @@
|
|||
import { BaseConfig, GlobalPluginBlueprint, GuildPluginBlueprint, Knub } from "knub";
|
||||
import { GlobalPluginBlueprint, GuildPluginBlueprint, Knub } from "knub";
|
||||
import z, { ZodTypeAny } from "zod";
|
||||
import { zSnowflake } from "./utils.js";
|
||||
|
||||
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