identifyUser() - PraumatFR/useful-functions GitHub Wiki

function identifyUser()

This function will find the user you want by multiple way depending how you type your command.

⚠️ With this function your programme need to have the target user in cache ⚠️

Go to the first page to learn how to do that.

Author

If you want to target yourself don't type anything on this option.

Mentions

Mention someone, with this option you can actually put the mention everywhere you want in your command line

ID

If you want to target someone (or yourself) with his ID.

Name (only the username for the moment not the nickname (server rename))

Thanks to the npm module 'string-similarity' you can do things like this !