Use commandTypeHelpers instead of baseTypeHelpers

This commit is contained in:
Dragory 2020-07-06 03:05:40 +03:00
parent c17fef6440
commit 3df57e3cb9
No known key found for this signature in database
GPG key ID: 5F387BA66DF8AAC1
5 changed files with 26 additions and 28 deletions

View file

@ -1,5 +1,4 @@
import { utilityCmd } from "../types";
import { baseTypeHelpers as t } from "knub";
import { commandTypeHelpers as ct } from "../../../commandTypes";
import { embedPadding, resolveMember, trimLines, UnknownUser } from "../../../utils";
import { EmbedOptions, GuildTextableChannel } from "eris";
@ -16,7 +15,7 @@ export const InfoCmd = utilityCmd({
signature: {
user: ct.resolvedUserLoose({ required: false }),
compact: t.switchOption({ shortcut: "c" }),
compact: ct.switchOption({ shortcut: "c" }),
},
async run({ message: msg, args, pluginData }) {