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

How to get the room title in v0.17 wechaty? #1454

Closed
suntong opened this Issue Jul 10, 2018 · 2 comments

Comments

Projects
None yet
2 participants
@suntong
Copy link
Contributor

suntong commented Jul 10, 2018

I use the following to get the room title in v0.14,

${room.topic()}

but in v0.17, it prints out

[object Promise]

How to get the room title in v0.17 wechaty?

@huan

This comment has been minimized.

Copy link
Member

huan commented Jul 10, 2018

Please use await room.topic() because it changed to be a async function since v0.16

@suntong

This comment has been minimized.

Copy link
Contributor

suntong commented Jul 10, 2018

Perfect! Thx!

@suntong suntong closed this Jul 10, 2018

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