# MatrixEvent
# Constructor
new MatrixCord.MatrixEvent(client, info)
Parameter | Type | Description |
---|---|---|
client | MatrixClient | The client the event is for |
info | EventInfo | The event information |
# Properties
# .client READONLY
Client that this event is for
Type: MatrixClient
# .id
Unique id for this event
Type: String (opens new window)
# .name
Valid event name
Type: keyof ClientEvents (opens new window)
# .once
Whether the event should run once
Type: Boolean (opens new window)
# Methods
# .run(...args) ABSTRACT
Parameter | Type | Description |
---|---|---|
...args | ClientEvents (opens new window)[keyof ClientEvents (opens new window)] | All arguments from the specific event |
Returns: Any
# .validateInfo(client, info) STATIC
Parameter | Type | Description |
---|---|---|
client | MatrixClient | The client to use |
info | EventInfo | The event information |
Returns: Void
← MatrixRegistry Util →