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,7 +1,7 @@
|
|||
import { guildPlugin } from "knub";
|
||||
import { GuildRoleQueue } from "../../data/GuildRoleQueue";
|
||||
import { mapToPublicFn } from "../../pluginUtils";
|
||||
import { LogsPlugin } from "../Logs/LogsPlugin";
|
||||
import { zeppelinGuildPlugin } from "../ZeppelinPluginBlueprint";
|
||||
import { addPriorityRole } from "./functions/addPriorityRole";
|
||||
import { addRole } from "./functions/addRole";
|
||||
import { removePriorityRole } from "./functions/removePriorityRole";
|
||||
|
@ -9,9 +9,8 @@ import { removeRole } from "./functions/removeRole";
|
|||
import { runRoleAssignmentLoop } from "./functions/runRoleAssignmentLoop";
|
||||
import { RoleManagerPluginType, zRoleManagerConfig } from "./types";
|
||||
|
||||
export const RoleManagerPlugin = zeppelinGuildPlugin<RoleManagerPluginType>()({
|
||||
export const RoleManagerPlugin = guildPlugin<RoleManagerPluginType>()({
|
||||
name: "role_manager",
|
||||
showInDocs: false,
|
||||
|
||||
dependencies: () => [LogsPlugin],
|
||||
configParser: (input) => zRoleManagerConfig.parse(input),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue