From 6e39a27dc534a3949445176f7a686d56e0550236 Mon Sep 17 00:00:00 2001 From: Bsian Date: Fri, 1 Nov 2019 12:11:25 +0000 Subject: [PATCH] Hopefully fix second+ subcommand aliases not working --- src/class/Util.ts | 2 -- src/commands/cwg_delete.ts | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/src/class/Util.ts b/src/class/Util.ts index bb87099..6ae38eb 100644 --- a/src/class/Util.ts +++ b/src/class/Util.ts @@ -69,8 +69,6 @@ export default class Util { for (const subCmd of resolvedCommand.subcommands.toArray()) { if (subCmd.aliases.includes(args[0])) { resolvedCommand = subCmd; parentLabel += ` ${args[0]}`; args.shift(); break; - } else { - hasSubCommands = false; break; } } } diff --git a/src/commands/cwg_delete.ts b/src/commands/cwg_delete.ts index aa51456..3998fab 100644 --- a/src/commands/cwg_delete.ts +++ b/src/commands/cwg_delete.ts @@ -4,7 +4,7 @@ import { Message } from 'eris'; import { Command, RichEmbed } from '../class'; import { Client } from '..'; -export default class CWG_Data extends Command { +export default class CWG_Delete extends Command { constructor(client: Client) { super(client); this.name = 'delete';