BREAKING CHANGE v0.25 Room.say(text: string, mention: Contact[]) deprecated
Created by: windmemory
BREAKING CHANGE:
room.say()
function no longer accept arguments like below:
room.say(text: string, mention: Contact[])
Alternative solution
To mention multiple contacts when sending out text messages, there are two new ways of doing that:
room.say(text: string, ...mentionList: Contact[])
Sample code:
// Assume you got there Contact instance
// contactA assume the name is Alex
// contactB assume the name is Bob
// contactC assume the name is Carson
await room.say('let\'s party', contactA, contactB, contactC)
Send out text will be
@Alex @Bob @Carson let's party
Tagged Template
Sample code:
// Assume you got there Contact instance
// contactA assume the name is Alex
// contactB assume the name is Bob
// contactC assume the name is Carson
room.say`Hello ${contactA} and ${contactB}, this is ${contactC}`
Send out text will be
Hello @Alex and @Bob, this is @Carson