From 23c61a98333fa8c4c5d53bd57bd77152e5902c5a Mon Sep 17 00:00:00 2001 From: Dragon Fire Date: Sun, 1 Mar 2020 14:59:48 -0500 Subject: [PATCH] Fix --- 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 ca5836fe..49337248 100644 --- a/commands/util/unknown-command.js +++ b/commands/util/unknown-command.js @@ -18,7 +18,7 @@ module.exports = class UnknownCommandCommand extends Command { run(msg) { const commands = this.client.registry.commands.map(c => c.name); const command = msg.content.match(this.client.dispatcher._commandPatterns[this.client.commandPrefix]); - const didYouMean = meant(command || msg.content.split(' ')[0], commands); + const didYouMean = meant(command ? command[2] : msg.content.split(' ')[0], commands); const inGuild = msg.guild ? undefined : null; return msg.reply(stripIndents` Unknown command. Use ${msg.anyUsage('help', inGuild, inGuild)} to view the command list.