From 813776705a89a986004ed18d1dd53c475c250567 Mon Sep 17 00:00:00 2001 From: Dragon Fire Date: Sun, 1 Mar 2020 21:07:16 -0500 Subject: [PATCH] Don't include - aliases in didyoumean array --- commands/util/unknown-command.js | 2 +- package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/commands/util/unknown-command.js b/commands/util/unknown-command.js index 63db4624..ecc8e970 100644 --- a/commands/util/unknown-command.js +++ b/commands/util/unknown-command.js @@ -34,7 +34,7 @@ module.exports = class UnknownCommandCommand extends Command { if (!owner && command.ownerOnly) continue; if (command.hidden) continue; arr.push(command.name); - arr.push(...command.aliases); + arr.push(...command.aliases.filter(alias => !alias.includes('-'))); } return arr; } diff --git a/package.json b/package.json index 2618a9ff..05fecfd9 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "xiao", - "version": "111.1.2", + "version": "111.1.3", "description": "Your personal server companion.", "main": "Xiao.js", "scripts": {