Command names can include dashes

This commit is contained in:
Dragon Fire
2020-03-01 21:08:23 -05:00
parent 813776705a
commit 1f40e2c88a
+1 -1
View File
@@ -33,7 +33,7 @@ module.exports = class UnknownCommandCommand extends Command {
for (const command of this.client.registry.commands.values()) {
if (!owner && command.ownerOnly) continue;
if (command.hidden) continue;
arr.push(command.name);
if (!command.name.includes('-')) arr.push(command.name);
arr.push(...command.aliases.filter(alias => !alias.includes('-')));
}
return arr;