mirror of
https://github.com/ZeppelinBot/Zeppelin.git
synced 2025-05-12 04:55:01 +00:00
new knub typings
Signed-off-by: GitHub <noreply@github.com>
This commit is contained in:
parent
386ca4d488
commit
166b237541
48 changed files with 114 additions and 114 deletions
|
@ -1,4 +1,4 @@
|
|||
import { parseSignature, typedGuildCommand } from "knub";
|
||||
import { parseSignature, guildPluginMessageCommand } from "knub";
|
||||
import { commandTypes } from "../../commandTypes";
|
||||
import { stripObjectToScalars, UnknownUser } from "../../utils";
|
||||
import { zeppelinGuildPlugin } from "../ZeppelinPluginBlueprint";
|
||||
|
@ -32,7 +32,7 @@ export const CustomEventsPlugin = zeppelinGuildPlugin<CustomEventsPluginType>()(
|
|||
for (const [key, event] of Object.entries(config.events)) {
|
||||
if (event.trigger.type === "command") {
|
||||
const signature = event.trigger.params ? parseSignature(event.trigger.params, commandTypes) : {};
|
||||
const eventCommand = typedGuildCommand({
|
||||
const eventCommand = guildPluginMessageCommand({
|
||||
trigger: event.trigger.name,
|
||||
permission: `events.${key}.trigger.can_use`,
|
||||
signature,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue