From 2497186b626048704264195102854414200fce30 Mon Sep 17 00:00:00 2001 From: anhnh12 Date: Thu, 27 Jun 2024 10:50:23 +0700 Subject: [PATCH] fix: ignore unknown cmds (#1693) --- src/ui/discord/embed.ts | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/ui/discord/embed.ts b/src/ui/discord/embed.ts index f5ad653ae..d86a74b91 100644 --- a/src/ui/discord/embed.ts +++ b/src/ui/discord/embed.ts @@ -604,12 +604,7 @@ export async function getCommandSuggestion( const results = fuzzySet.get(userInput, null, 0.5) if (!results || results.length == 0) { - return { - author: ["Mochi is confused", getEmojiURL(emojis.MOCHI_CIRCLE)], - description: `Mochi doesn't understand what command you are trying to use.\n${getEmoji( - "ANIMATED_POINTING_RIGHT", - )} Perhaps you can reference \`${PREFIX}help\` for more info`, - } + return null } else { const result = results[0][1] const cmd = commands[result]