Class: User

User()

new User()

Represents a user. Most properties are promises, to lazily load them from the server if they're not present.
Properties:
Name Type Description
id number The id of the user
name Promise.<string> The name of the user
about Promise.<string> The about section of their chat profile
isModerator Promise.<boolean> True if the user is a moderator, false otherwise
messageCount Promise.<number> The number of all time messages this user has sent
roomCount Promise.<number> All time number of rooms this user has been a part of
lastSeen Promise.<number> The number of seconds since this user was last seen
lastMessage Promise.<number> The number of seconds since this user posted a message in any chat
Source:

Methods

(async) scrapeProfile() → {void}

Used by most properties of this class to fetch their profile, and updates their associated values.
Source:
Returns:
Type
void