Skip to content

Commit

Permalink
Merge branch 'preview'
Browse files Browse the repository at this point in the history
  • Loading branch information
anhnh12 committed Jun 27, 2024
2 parents 51b0722 + f7f4e41 commit 7b46b88
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 7 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
## [6.52.7-rc.1](https://github.com/consolelabs/mochi-discord/compare/v6.52.6...v6.52.7-rc.1) (2024-06-27)


### Bug Fixes

* ignore unknown cmds ([#1693](https://github.com/consolelabs/mochi-discord/issues/1693)) ([2497186](https://github.com/consolelabs/mochi-discord/commit/2497186b626048704264195102854414200fce30))

## [6.52.6](https://github.com/consolelabs/mochi-discord/compare/v6.52.5...v6.52.6) (2024-06-20)


Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -121,5 +121,5 @@
"node": "18.x"
},
"name": "mochi-discord",
"version": "6.52.6"
"version": "6.52.7-rc.1"
}
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 7b46b88

Please sign in to comment.