Optional
avatarThe 'avatar_url' of the user if known.
Whether we should consider lastActiveAgo to be an approximation and that the user should be seen as active 'now'
Optional
displayThe 'displayname' of the user if known.
The events describing this user.
Optional
presence?: MatrixEventThe m.presence event for this user.
Optional
profile?: MatrixEventTimestamp (ms since the epoch) for when we last received presence data for this user. We can subtract lastActiveAgo from this to approximate an absolute value for when a user was last active.
The time elapsed in ms since the user interacted proactively with the server, or we saw a message from the user
Private
modifiedThe presence enum if known.
Optional
presenceThe presence status message if known.
Optional
rawReadonly
userRequired. The ID of this user.
Rest
...args: Parameters<UserEventHandlerMap[T]>Rest
...args: Parameters<UserEventHandlerMap[T]>Optional
event: EventEmitterEvents | UserEventUpdate this User with the given presence event. May fire "User.presence", "User.avatarUrl" and/or "User.displayName" if this event updates this user's properties.
Fires Presence Fires DisplayName Fires AvatarUrl
The m.presence
event.
Private
updateGenerated using TypeDoc
Typed Event Emitter class which can act as a Base Model for all our model and communication events. This makes it much easier for us to distinguish between events, as we now need to properly type this, so that our events are not stringly-based and prone to silly typos.