RoomInvitation
accept room invitation
RoomInvitation
accept room invitation
Kind: global class
.accept() ⇒
Promise <void>
.inviter() ⇒
Promise <Contact>
.topic() ⇒
Promise <string>
.roomTopic()⇒Promise <string>
.date() ⇒
Promise <Date>
.age() ⇒
Promise <number>
roomInvitation.accept() ⇒ Promise <void>
Promise <void>
Accept Room Invitation
Kind: instance method of RoomInvitation
Example
roomInvitation.inviter() ⇒ Promise <Contact>
Promise <Contact>
Get the inviter from room invitation
Kind: instance method of RoomInvitation
Example
roomInvitation.topic() ⇒ Promise <string>
Promise <string>
Get the room topic from room invitation
Kind: instance method of RoomInvitation
Example
roomInvitation.roomTopic()
Kind: instance method of RoomInvitation
Deprecated:: use topic() instead
roomInvitation.date() ⇒ Promise <Date>
Promise <Date>
Get the invitation time
Kind: instance method of RoomInvitation
roomInvitation.age() ⇒ Promise <number>
Promise <number>
Returns the roopm invitation age in seconds.
For example, the invitation is sent at time 8:43:01
, and when we received it in Wechaty, the time is 8:43:15
, then the age() will return 8:43:15 - 8:43:01 = 14 (seconds)
Kind: instance method of RoomInvitation
Last updated