'Discord.js search nearest result of an argument
Im not sure if this question has been posted yet but here is what i wanna make:
So im trying to make something that find the nearest result of an argument.(Discord.js v13) But i have no idea on how to make it,is there a Code or an API for this feature?
For example:
!find rock If Rock is in the bot list,then it will say something like "Rock is bla bla bla".If it is not in the bot it will say something like "Rock is unknown!Did you mean Rack , Dock , Etc if theres more on the bot."
another example: !find rok that is an typo so it will also do the same thing. "Rok is unknown!Did you mean Rock , Etc"
Would like to get some help on this!
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
