Readonly
clientThe client instance.
The unique identifier for the object.
The current status of the user (e.g., Online, Idle, Busy, Invisible).
The custom status text of the user, or null
if none is set.
Creates a deep clone of the object.
A clone of the object.
Updates the object with new data and returns a clone of the object.
The data to update the object with.
Optional
clear: string[]Fields to clear in the object.
A clone of the updated object.
Compares this object with another to determine if they are equal.
Optional
obj: null | PresenceThe object to compare with.
true
if the objects are equal, otherwise false
.
Represents the presence of a user, including their status and custom text.