$findMember

Searches for a member, by: nickname/ID/mention/username/username#dicriminator

Usage:

$findMember[nickname/ID/mention/username/username#dicriminator;returnCurrentUser (yes/no) (optional)]

If member is found:

Member05/28/2024
!!exec $findMember[Member#0000;no]
Custom Command Bot 05/28/2024
869243919697846379

If member is not found:

Member05/28/2024
!!exec $findMember[user;no]
Custom Command Bot 05/28/2024
undefined

Warning

This data comes from the cache, not the api, therefore it may not be precise unless all the guild members are cached (which only in tier 5).

Related Functions

$authorID, to get the ID from the author of the command

$userID, to return a user ID from a given username

Function difficulty: Medium
Tags: member find find member find user search Member search User