forked from engineering/cloudservices
Fixed stuff for subcommands
parent
6796317c6c
commit
ba71d2ebdf
|
@ -50,7 +50,7 @@ export default class Util {
|
|||
|
||||
if (!resolvedCommand) return Promise.resolve(null);
|
||||
query.shift();
|
||||
while (resolvedCommand.subcommands.size) {
|
||||
while (resolvedCommand.subcommands.size && query.length) {
|
||||
const subCommands = resolvedCommand.subcommands.toArray();
|
||||
const found = subCommands.find((c) => c.name === query[0].toLowerCase() || c.aliases.includes(query[0].toLowerCase()));
|
||||
if (!found) break;
|
||||
|
|
Loading…
Reference in New Issue