From 0c974e1d16b109fca859dc2ca043b061c1d8a752 Mon Sep 17 00:00:00 2001 From: Dragory Date: Sat, 23 Feb 2019 21:32:38 +0200 Subject: [PATCH] ModActions: remove aliases showcase, usercases --- src/plugins/ModActions.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/plugins/ModActions.ts b/src/plugins/ModActions.ts index 54473267..d9684af3 100644 --- a/src/plugins/ModActions.ts +++ b/src/plugins/ModActions.ts @@ -1013,9 +1013,9 @@ export class ModActionsPlugin extends ZeppelinPlugin { * If the argument passed is a case id, display that case * If the argument passed is a user id, show all cases on that user */ - @d.command(/showcase|case/, "") + @d.command("case", "") @d.permission("view") - async showcaseCmd(msg: Message, args: { caseNumber: number }) { + async showCaseCmd(msg: Message, args: { caseNumber: number }) { // Assume case id const theCase = await this.cases.findByCaseNumber(args.caseNumber); @@ -1030,9 +1030,9 @@ export class ModActionsPlugin extends ZeppelinPlugin { }); } - @d.command(/cases|usercases/, " [opts:string$]") + @d.command("cases", " [opts:string$]") @d.permission("view") - async usercasesCmd(msg: Message, args: { userId: string; opts?: string }) { + async userCasesCmd(msg: Message, args: { userId: string; opts?: string }) { const cases = await this.cases.with("notes").getByUserId(args.userId); const normalCases = cases.filter(c => !c.is_hidden); const hiddenCases = cases.filter(c => c.is_hidden);