Class

MatrixEvent

MatrixEvent()

A Matrix event.
Constructor

# new MatrixEvent()

View Source models/events/Event.ts, line 6

Classes

MatrixEvent

Members

# content

The content for this event. May have no properties.

View Source models/events/Event.ts, line 26

# raw

Gets the raw event that this MatrixEvent is using. Note that there's no guarantees on formats here - it is the exact same input to the constructor.

View Source models/events/Event.ts, line 34

# sender

The user ID who sent this event.

View Source models/events/Event.ts, line 14

# type

The type of this event.

View Source models/events/Event.ts, line 20

Methods

# content() → {T}

The content for this event. May have no properties.

View Source models/events/Event.ts, line 60

T

# raw() → {any}

Gets the raw event that this MatrixEvent is using. Note that there's no guarantees on formats here - it is the exact same input to the constructor.

View Source models/events/Event.ts, line 69

any

# sender() → {string}

The user ID who sent this event.

View Source models/events/Event.ts, line 46

string

# type() → {string}

The type of this event.

View Source models/events/Event.ts, line 53

string