mirror of
https://github.com/ZeppelinBot/Zeppelin.git
synced 2025-05-20 00:05:04 +00:00
Use commandTypeHelpers instead of baseTypeHelpers
This commit is contained in:
parent
b7042c1af4
commit
4fc0ce1de5
5 changed files with 26 additions and 28 deletions
|
@ -1,6 +1,5 @@
|
|||
import { utilityCmd } from "../types";
|
||||
import { commandTypeHelpers as ct } from "../../../commandTypes";
|
||||
import { baseTypeHelpers as t } from "knub";
|
||||
import { errorMessage } from "../../../utils";
|
||||
import { canActOn, sendSuccessMessage } from "../../../pluginUtils";
|
||||
|
||||
|
@ -12,7 +11,7 @@ export const NicknameCmd = utilityCmd({
|
|||
|
||||
signature: {
|
||||
member: ct.resolvedMember(),
|
||||
nickname: t.string({ catchAll: true }),
|
||||
nickname: ct.string({ catchAll: true }),
|
||||
},
|
||||
|
||||
async run({ message: msg, args, pluginData }) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue