$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:

Member04/02/2024
!!exec $findMember[Member#0000;no]
Custom Command Bot 04/02/2024
869243919697846379

If member is not found:

Member04/02/2024
!!exec $findMember[user;no]
Custom Command Bot 04/02/2024
undefined

Warning

This search happen on cached users only, 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