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

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

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

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

suntong opened this issue Jul 10, 2018 · 2 comments

Comments

@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
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
Copy link
Contributor Author

suntong commented Jul 10, 2018

Perfect! Thx!

@suntong suntong closed this as completed Jul 10, 2018
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