3
0
Fork 0
mirror of https://github.com/ZeppelinBot/Zeppelin.git synced 2025-05-14 13:55:03 +00:00

feat: update knub; use base Knub types for plugins

This commit is contained in:
Dragory 2024-03-30 12:34:33 +00:00
parent 4597b83cda
commit c2ae6d53d8
No known key found for this signature in database
90 changed files with 713 additions and 607 deletions

View file

@ -1,5 +1,5 @@
import { BaseConfig, Knub } from "knub";
import z from "zod";
import z, { ZodTypeAny } from "zod";
import { zSnowflake } from "./utils";
export interface ZeppelinGuildConfig extends BaseConfig {
@ -34,11 +34,13 @@ export type TZeppelinKnub = Knub;
export type TMarkdown = string;
export interface ZeppelinPluginInfo {
showInDocs: boolean;
prettyName: string;
description?: TMarkdown;
usageGuide?: TMarkdown;
configurationGuide?: TMarkdown;
legacy?: boolean;
configSchema?: ZodTypeAny;
}
export interface CommandInfo {