$userExists

Checks if a user exists within the server. Returns true if the user exists, and false otherwise.

Usage:

$userExists[userId]

Arguments:

  • userId: The ID of the user to check.

Example:

Member04/04/2025
!!exec $userExists[$authorID]
Custom Command Bot 04/04/2025
true

This example checks if the message author exists in the server and returns true if they do.

Warning

This function relies on the bot's cache. The information may not be perfectly accurate unless all guild members are cached (typically only in tier 5 bots). This means it might return false even if a user exists if they haven't been cached yet.

Related Functions

  • $findMember: Finds a member's ID based on search criteria.
Function Difficulty: Easy
Tags: User Exists Check Is Real Server