PuppetPadChat:Contact.avatar() Error
Created by: zhoumh1988
0|lightbot | You have triggered an unhandledRejection, you may have forgotten to catch a Promise rejection:
0|lightbot | Error: no avatar
0|lightbot | at PuppetPadchat.<anonymous> (/Users/zhouminghua/Documents/mp/lightbot/node_modules/wechaty/node_modules/wechaty-puppet-padchat/dist/src/puppet-padchat.js:449:23)
0|lightbot | at Generator.next (<anonymous>)
0|lightbot | at fulfilled (/Users/zhouminghua/Documents/mp/lightbot/node_modules/wechaty/node_modules/wechaty-puppet-padchat/dist/src/puppet-padchat.js:22:58)
0|lightbot | at process._tickCallback (internal/process/next_tick.js:68:7)
When I get contact avatar.
let rooms = bot.Room.findAll();
rooms.forEach(async r => {
let members = await r.memberList();
membders.forEach(aynsc c => {
let avatar = await contact.avatar();
});
});