You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
room-leave has update according: #250#370
It structures as follows:
.on('room-leave',function(this,room,leaver,remover){log.info('Bot','EVENT: room-leave - Room %s lost member %s by %s',room.topic(),leaverList.map(c=>c.name()).join(','),remover.name())})
But in src/wechaty.ts, it says:
publicon(event: 'room-leave',listener: (this: Wechaty,room: Room,leaverList: Contact[])=>void): this
In src/room.ts, it says:
publicon(event: 'leave',listener: (this: Room,leaver: Contact)=>void): this
This is old version of room-leave
The text was updated successfully, but these errors were encountered:
/** * FIXME: leaver maybe is a list * @lijiarui: I have checked, leaver will never be a list. If the bot remove 2 leavers at the same time, it will be 2 sys message, instead of 1 sys message contains 2 leavers. */this.emit('room-leave',room,leaverContact,removerContact)room.emit('leave',leaverContact,removerContact)
huan
changed the title
wechaty.ts room-leave event should adjust the new version
BREAKING CHANGE: first arg of room-leave event licener changed from Contact to Contact[]Apr 30, 2018
room-leave
has update according: #250 #370It structures as follows:
But in
src/wechaty.ts
, it says:In
src/room.ts
, it says:This is old version of
room-leave
The text was updated successfully, but these errors were encountered: