mirror of
https://github.com/ZeppelinBot/Zeppelin.git
synced 2025-06-07 16:05:01 +00:00
refactor: move defaults to config schemas
This commit is contained in:
parent
09eb8e92f2
commit
83d35052c3
91 changed files with 450 additions and 888 deletions
|
@ -5,18 +5,12 @@ import { Webhooks } from "../../data/Webhooks.js";
|
|||
import { makePublicFn } from "../../pluginUtils.js";
|
||||
import { editMessage } from "./functions/editMessage.js";
|
||||
import { sendMessage } from "./functions/sendMessage.js";
|
||||
import { InternalPosterPluginType } from "./types.js";
|
||||
|
||||
const defaultOptions: PluginOptions<InternalPosterPluginType> = {
|
||||
config: {},
|
||||
overrides: [],
|
||||
};
|
||||
import { InternalPosterPluginType, zInternalPosterConfig } from "./types.js";
|
||||
|
||||
export const InternalPosterPlugin = guildPlugin<InternalPosterPluginType>()({
|
||||
name: "internal_poster",
|
||||
|
||||
configParser: (input) => z.strictObject({}).parse(input),
|
||||
defaultOptions,
|
||||
configSchema: zInternalPosterConfig,
|
||||
|
||||
public(pluginData) {
|
||||
return {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue