3
0
Fork 0
mirror of https://github.com/ZeppelinBot/Zeppelin.git synced 2025-07-08 03:27:20 +00:00

Update to Knub 24. Update Node typings to fix error with [util.inspect.custom] property.

This commit is contained in:
Dragory 2019-09-22 17:06:22 +03:00
parent 1681a45069
commit 4d7ab10fcf
12 changed files with 183 additions and 122 deletions

View file

@ -87,7 +87,7 @@ export class CustomEventsPlugin extends ZeppelinPlugin<TConfigSchema> {
onLoad() {
for (const [key, event] of Object.entries(this.getConfig().events)) {
if (event.trigger.type === "command") {
this.commands.add(
this.addCommand(
event.trigger.name,
event.trigger.params,
(msg, args) => {
@ -95,8 +95,9 @@ export class CustomEventsPlugin extends ZeppelinPlugin<TConfigSchema> {
this.runEvent(event, { msg, args }, { args, msg: strippedMsg });
},
{
requiredPermission: `events.${key}.trigger.can_use`,
locks: [],
extra: {
requiredPermission: `events.${key}.trigger.can_use`,
},
},
);
}