From 1f40e2c88a6fcb11f286c1a05d155c9e9a5c08fb Mon Sep 17 00:00:00 2001 From: Dragon Fire Date: Sun, 1 Mar 2020 21:08:23 -0500 Subject: [PATCH] Command names can include dashes --- commands/util/unknown-command.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/commands/util/unknown-command.js b/commands/util/unknown-command.js index ecc8e970..c072d8c2 100644 --- a/commands/util/unknown-command.js +++ b/commands/util/unknown-command.js @@ -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;