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:
parent
4597b83cda
commit
c2ae6d53d8
90 changed files with 713 additions and 607 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue