mirror of
https://github.com/FranP-code/Baileys.git
synced 2025-10-13 00:32:22 +00:00
.
This commit is contained in:
@@ -41,7 +41,7 @@
|
|||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@types/mocha": "7.0.2",
|
"@types/mocha": "7.0.2",
|
||||||
"@types/node": "14.0.27",
|
"@types/node": "^14.0.27",
|
||||||
"@types/ws": "^7.2.6",
|
"@types/ws": "^7.2.6",
|
||||||
"assert": "^2.0.0",
|
"assert": "^2.0.0",
|
||||||
"dotenv": "^8.2.0",
|
"dotenv": "^8.2.0",
|
||||||
|
|||||||
@@ -142,7 +142,7 @@ export class WAConnection extends Base {
|
|||||||
}
|
}
|
||||||
/** Set the callback for presence updates; if someone goes offline/online, this callback will be fired */
|
/** Set the callback for presence updates; if someone goes offline/online, this callback will be fired */
|
||||||
protected registerOnPresenceUpdate() {
|
protected registerOnPresenceUpdate() {
|
||||||
this.registerCallback('Presence', json => this.emit('user-presence-update', json[1]))
|
this.registerCallback('Presence', json => this.emit('user-presence-update', json[1] as PresenceUpdate))
|
||||||
}
|
}
|
||||||
/** inserts an empty chat into the DB */
|
/** inserts an empty chat into the DB */
|
||||||
protected async chatAdd (jid: string, title?: string) {
|
protected async chatAdd (jid: string, title?: string) {
|
||||||
|
|||||||
Reference in New Issue
Block a user