The matrix event which caused this event to fire.
The member whose RoomMember.membership changed.
Optional
oldMembership: stringThe previous membership state. Null if it's a new member.
matrixClient.on("RoomMember.membership", function(event, member, oldMembership){
var newState = member.membership;
});
Fires whenever any room member's name changes.
The matrix event which caused this event to fire.
The member whose RoomMember.name changed.
The previous name. Null if the member didn't have a name previously.
matrixClient.on("RoomMember.name", function(event, member){
var newName = member.name;
});
Fires whenever any room member's power level changes.
The matrix event which caused this event to fire.
The member whose RoomMember.powerLevel changed.
matrixClient.on("RoomMember.powerLevel", function(event, member){
var newPowerLevel = member.powerLevel;
var newNormPowerLevel = member.powerLevelNorm;
});
Fires whenever any room member's typing state changes.
The matrix event which caused this event to fire.
The member whose RoomMember.typing changed.
matrixClient.on("RoomMember.typing", function(event, member){
var isTyping = member.typing;
});
Generated using TypeDoc
Fires whenever any room member's membership state changes.