Interface: ClientEvents
Defined in: client/options.ts:86
Client event map (strongly typed).
Properties
disconnected
disconnected: [
object]
Defined in: client/options.ts:102
Connection closed. reconnecting indicates whether it will retry.
error
error: [
Error]
Defined in: client/options.ts:104
Non-fatal error.
message
message: [
Context]
Defined in: client/options.ts:94
Incoming message (not your own). You receive a Context.
message_create
message_create: [
Context]
Defined in: client/options.ts:96
Any created message, including your own.
pairing_code
pairing_code: [
string]
Defined in: client/options.ts:90
Pairing code generated (login without QR).
presence
presence: [
PresenceEvent]
Defined in: client/options.ts:100
A contact's presence changed (requires subscribeToPresence).
qr
qr: [
Qr]
Defined in: client/options.ts:88
New QR to scan.
reaction
reaction: [
ReactionEvent]
Defined in: client/options.ts:98
Someone reacted to a message.
ready
ready: [
ClientInfo]
Defined in: client/options.ts:92
Connection established and ready to use.