Skip to content

Commit

Permalink
Merge branch 'develop' into preview
Browse files Browse the repository at this point in the history
  • Loading branch information
anhnh12 committed Jun 27, 2024
2 parents 3a01253 + 2497186 commit 1252c2f
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions src/ui/discord/embed.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down

0 comments on commit 1252c2f

Please sign in to comment.