1
0
Fork 0

Hopefully fix second+ subcommand aliases not working

refactor/models
Bsian 2019-11-01 12:11:25 +00:00
parent 01e0cafb6e
commit 6e39a27dc5
No known key found for this signature in database
GPG Key ID: 097FB9A291026091
2 changed files with 1 additions and 3 deletions

View File

@ -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;
}
}
}

View File

@ -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';