$findMember
Searches for a user in the current server by their nickname, ID, mention, username, or username with discriminator. Returns userID of the found user.
Usage:
$findMember[query;returnCurrentUser]
- query - Can be userID, nickname, mention, username, username#descriminator.
- returnCurrentUser - (Optional) default value:
yes
. Can be eitheryes
orno
. If this is set to yes, when user is not found, it will return $authorID. If it's no, and user is not found, it will return undefined.
Example
Successful search
Searching for existing user
Unsuccessful search
Searching for invalid user
Cache
This function works on the bot's cache to find members. If the user is not cached, the function will not find them. User will be cached after they trigger any command from this bot, but eventually they will get deleted.
To have all members cached, you will need Tier 5 Bot.