Class

MembershipEvent

MembershipEvent()

Represents an m.room.member state event
Constructor

# new MembershipEvent()

View Source models/events/MembershipEvent.ts, line 8

Classes

MembershipEvent

Members

# effectiveMembership

The user's effective membership.

View Source models/events/MembershipEvent.ts, line 38

# membership

The user's membership.

View Source models/events/MembershipEvent.ts, line 29

# membershipFor

The user ID the membership affects.

View Source models/events/MembershipEvent.ts, line 23

# ownMembership

True if the membership event targets the sender. False otherwise. This will typically by false for kicks and bans.

View Source models/events/MembershipEvent.ts, line 17

Methods

# effectiveMembership() → {EffectiveMembership}

The user's effective membership.

View Source models/events/MembershipEvent.ts, line 97

# membership() → {Membership}

The user's membership.

View Source models/events/MembershipEvent.ts, line 90

Membership

# membershipFor() → {string}

The user ID the membership affects.

View Source models/events/MembershipEvent.ts, line 83

string

# ownMembership() → {boolean}

True if the membership event targets the sender. False otherwise. This will typically by false for kicks and bans.

View Source models/events/MembershipEvent.ts, line 76

boolean