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

PuppetPadchat: The contact.star() doesn't work #1413

Closed
kis87988 opened this Issue Jun 28, 2018 · 3 comments

Comments

Projects
None yet
3 participants
@kis87988
Copy link
Contributor

kis87988 commented Jun 28, 2018

Provide Your Network Information

  1. Where is the location of your server? (i.e. City, or In/Out China) U.S.
  2. Which cloud platform(AliYun/Qcloud/DigitalOcean/etc) are you using? None

Run in docker
Wechaty v0.17.46 with Node.js v10.5.0

.on('message', async msg => {
  const contact = msg.from()
  const content: string = msg.text()
  const room: Room | null = msg.room()
  if (msg.self() || !contact)
  {
    return // skip self
  }
  const contact_star = await contact.star()
  console.log("contact star:", contact_star) //output null
})

Expected behavior

Boolean

Actual behavior

Null

@lijiarui

This comment has been minimized.

Copy link
Member

lijiarui commented Jun 29, 2018

Thanks!

And this feature hasn't been implemented by wechaty-padchat yet...

@huan

This comment has been minimized.

Copy link
Member

huan commented Jul 2, 2018

@lijiarui Please move this conversation to the puppet-padchat repo, thanks.

@lijiarui

This comment has been minimized.

Copy link
Member

lijiarui commented Jul 2, 2018

Ok

@lijiarui lijiarui closed this Jul 2, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment