Twillio Conversation - Facing issues while adding and removing multiple particpants

95 views Asked by At

I am trying to add multiple participants to a particular discussion sid. if i am trying to add single participant, it is working properly.

** this "add" method is working for adding single participant.

const addParticipant = async () => {

   const emitMethods = await ConversationsClient?.create(token);

   (await emitMethods.getConversationBySid(discussionSid)).add('xyz')

}

** but trying the same method for adding or removing multiple participants throwing error

const addParticipant = async () => {

   const emitMethods = await ConversationsClient?.create(token);

   (await emitMethods.getConversationBySid(discussionSid)).add('xyz','123', '!@#')

} 
0

There are 0 answers