mirror of
https://github.com/ZeppelinBot/Zeppelin.git
synced 2025-05-14 22:05:01 +00:00
feat: add missing info.configSchemas
This commit is contained in:
parent
db52c61df4
commit
3b0a0b311d
19 changed files with 46 additions and 0 deletions
|
@ -1,6 +1,8 @@
|
|||
import { ZeppelinPluginInfo } from "../../types.js";
|
||||
import { zGuildMemberCacheConfig } from "./types.js";
|
||||
|
||||
export const guildMemberCachePluginInfo: ZeppelinPluginInfo = {
|
||||
prettyName: "Guild member cache",
|
||||
showInDocs: false,
|
||||
configSchema: zGuildMemberCacheConfig,
|
||||
};
|
||||
|
|
|
@ -1,7 +1,11 @@
|
|||
import { BasePluginType } from "knub";
|
||||
import { GuildMemberCache } from "../../data/GuildMemberCache.js";
|
||||
import { z } from "zod";
|
||||
|
||||
export const zGuildMemberCacheConfig = z.strictObject({});
|
||||
|
||||
export interface GuildMemberCachePluginType extends BasePluginType {
|
||||
config: z.infer<typeof zGuildMemberCacheConfig>;
|
||||
state: {
|
||||
memberCache: GuildMemberCache;
|
||||
saveInterval: NodeJS.Timeout;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue