Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

room.on('join',function(room, inviteeList, inviter)), can not get the inviteeList i.e. the new member #1613

Closed
muxiaoshan opened this issue Oct 7, 2018 · 2 comments

Comments

@muxiaoshan
Copy link

0. Report Issue Guide

  1. Please search in the issue first, and make sure your problem had not been reported before.
  2. If your issue is related to wechaty-puppet-padchat, please report the issue at https://github.com/lijiarui/wechaty-puppet-padchat/issues/new
  3. If your issue is related to wechaty-puppet-puppeteer, please report the issue at https://github.com/Chatie/wechaty-puppet-puppeteer/issues/new
  4. If your issue is DIRECT related to Wechaty, then please follow the below template and make sure you fill it as required in detail.

1. Expected behavior

Question: What behavior do you expect?

Answer: I want detect the new member who join the room

2. Actual behavior

Question: What actual behavior did you experience?

Answer: room.on('join',function(room, inviteeList, inviter)), can not get the inviteeList

3. Steps to reproduce your problem (and fixes, if any)

This part is very important: if you can not provide any reproduce steps, then the problem will be very hard to be recognized.

Question: What're the reproducible steps for us to see your problem?

Answer: My code like the follows

async function onLogin (user) {
console.log(${user.name()} login)
var roomTopic = '增长黑客002'
const room1 = await bot.Room.find({topic: roomTopic})
console.log(monitor ${room1} topic is ${roomTopic})
if (room1) {
room1.on('join', async (room, inviteeList, inviter) => {
console.log(Room ${roomTopic} got new member ${inviteeList}, invited by ${inviter})
})
}
}

But I got this

Message#Text(👥Room<增长黑客002>🗣Contact<增长黑客002>👤Contact<冰河时代>)<"山的那边"邀请"鲜花:-)若水"加入了群聊>
Room 增长黑客002 got new member Contact<山的那边>, invited by undefined

I can not get the new member 鲜花:-)若水

4. Full Output Logs

Show Logs
$ WECHATY_LOG=silly node yourbot.js

Question: Paste your FULL(DO NOT ONLY PROVIDE FRAGMENTS) log messages
Answer:
@lijiarui
Copy link
Member

lijiarui commented Oct 9, 2018

Need More Information

In order to help us to find the problem out, could you provide all the detail information about the issue. Please make add add the full log, and the more important: provide the steps to reproduce the problem.

Thanks! :)

@lijiarui
Copy link
Member

I will close this issue due to no more discussion for months, feel free to reopen this or file a new issue if you have any questions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants