mirror of
https://github.com/ZeppelinBot/Zeppelin.git
synced 2025-07-07 11:07:19 +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,6 +1,5 @@
|
|||
import { PluginOptions } from "knub";
|
||||
import { PluginOptions, guildPlugin } from "knub";
|
||||
import { GuildPingableRoles } from "../../data/GuildPingableRoles";
|
||||
import { zeppelinGuildPlugin } from "../ZeppelinPluginBlueprint";
|
||||
import { PingableRoleDisableCmd } from "./commands/PingableRoleDisableCmd";
|
||||
import { PingableRoleEnableCmd } from "./commands/PingableRoleEnableCmd";
|
||||
import { PingableRolesPluginType, zPingableRolesConfig } from "./types";
|
||||
|
@ -19,13 +18,8 @@ const defaultOptions: PluginOptions<PingableRolesPluginType> = {
|
|||
],
|
||||
};
|
||||
|
||||
export const PingableRolesPlugin = zeppelinGuildPlugin<PingableRolesPluginType>()({
|
||||
export const PingableRolesPlugin = guildPlugin<PingableRolesPluginType>()({
|
||||
name: "pingable_roles",
|
||||
showInDocs: true,
|
||||
info: {
|
||||
prettyName: "Pingable roles",
|
||||
configSchema: zPingableRolesConfig,
|
||||
},
|
||||
|
||||
configParser: (input) => zPingableRolesConfig.parse(input),
|
||||
defaultOptions,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue