The userId of the user.
Escape the user's localpart. Modify {@link MatrixUser~ESCAPE_DEFAULT} to change the default value.
The userId of the user.
Make a userId conform to the matrix spec using QP escaping. Grammar taken from: https://matrix.org/docs/spec/appendices.html#identifier-grammar
Get the data value for the given key.
An arbitrary bridge-specific key.
Stored data for this key. May be undefined.
Get the display name for this Matrix user.
The display name.
Get the matrix user's ID.
The user ID
Serialize all the data about this user, excluding the user ID.
The serialised data
Set an arbitrary bridge-specific data value for this room.
The key to store the data value under.
The data value. This value should be serializable via
JSON.stringify(data)
.
Set the display name for this Matrix user.
The Matrix display name.
Generated using TypeDoc
Construct a Matrix user.