3
0
Fork 0
mirror of https://github.com/ZeppelinBot/Zeppelin.git synced 2025-05-22 09:15:03 +00:00

Use blueprint directly for commands for clarity

This commit is contained in:
Dragory 2020-07-05 15:03:51 +03:00
parent 7ff2a47526
commit 6cc7d91b4c
4 changed files with 34 additions and 40 deletions

View file

@ -1,12 +1,14 @@
import { utilityCmd } from "../types";
import { baseTypeHelpers as t } from "knub";
export const SearchCmd = utilityCmd(
["search", "s"],
{
export const SearchCmd = utilityCmd({
trigger: ["search", "s"],
signature: {
query: t.string({ catchAll: true }),
},
run() {
},
{},
() => {}
);
});