mirror of
https://github.com/ZeppelinBot/Zeppelin.git
synced 2025-05-19 16:05:01 +00:00
Fix error on cooldown check in SelfGrantableRolesPlugin
This commit is contained in:
parent
41dbe61ef2
commit
2195a6e27f
2 changed files with 10 additions and 3 deletions
|
@ -1,4 +1,4 @@
|
|||
import { PluginOptions } from "knub";
|
||||
import { CooldownManager, PluginOptions } from "knub";
|
||||
import { SelfGrantableRolesPluginType, ConfigSchema, defaultSelfGrantableRoleEntry } from "./types";
|
||||
import { zeppelinPlugin } from "../ZeppelinPluginBlueprint";
|
||||
import { trimPluginDescription } from "src/utils";
|
||||
|
@ -91,5 +91,9 @@ export const SelfGrantableRolesPlugin = zeppelinPlugin<SelfGrantableRolesPluginT
|
|||
RoleHelpCmd,
|
||||
RoleRemoveCmd,
|
||||
RoleAddCmd,
|
||||
]
|
||||
],
|
||||
|
||||
onLoad(pluginData) {
|
||||
pluginData.state.cooldowns = new CooldownManager();
|
||||
},
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue