Optionalavatar?: Optionalbadges?: numberFormat: uint32
Bitfield of user badges
https://docs.rs/revolt-models/latest/revolt_models/v0/enum.UserBadges.html
Optionalbot?: null | { owner: string }Optionaldisplay_name?: null | stringOptionalflags?: numberFormat: uint32
Enum of user flags
https://docs.rs/revolt-models/latest/revolt_models/v0/enum.UserFlags.html
Optionalprivileged?: booleanOptionalrelations?: {Optionalstatus?: The avatar of the user, or null if none is set.
The badges associated with the user.
Whether the user is a bot.
ReadonlyclientThe client instance.
The unique identifier for the object.
The notes channel associated with the client user, if any.
The presence status of the user.
The username of the user.
Gets the creation timestamp of the user in milliseconds.
The timestamp of when the user was created.
checks if the user is the owner of the bot.
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.
Optionalclear: string[]Fields to clear in the object.
A clone of the updated object.
Compares this object with another to determine if they are equal.
Optionalobj: null | ClientUserThe object to compare with.
true if the objects are equal, otherwise false.
Optionaltext: null | stringUpdates the status of the client user.
Optionaltext: null | stringThe status text to set, or null to clear the status.
Optionalpresence: "Online" | "Idle" | "Focus" | "Busy" | "Invisible"The presence status (e.g., online, idle, etc.).
A promise that resolves when the status has been successfully updated.
Updates the username of the client user.
The new username to set.
Optionalpassword: stringThe current password of the user (required for non-bot accounts).
A promise that resolves when the username has been successfully updated.
Converts the user to a string representation.
A string representation of the user in the format <@userId>.
Represents the client user, which is the authenticated user or bot.