Use blueprint directly for commands for clarity

This commit is contained in:
Dragory 2020-07-05 15:03:51 +03:00
parent 05693455ec
commit 9963a4d5a4
No known key found for this signature in database
GPG key ID: 5F387BA66DF8AAC1
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() {
},
{},
() => {}
);
});