This repository was archived by the owner on Aug 15, 2024. It is now read-only.

Description
Hello Team,
I have created Twilio chat client.
tc.messagingClient = new Twilio.Chat.Client(token);
Now,I am accessing the getSubscribedChannels function.
tc
.messagingClient
.getSubscribedChannels()
.then((paginator)=> {
console.log(paginator);
for (i = 0; i < paginator.items.length; i++) {
var channel = paginator.items[i];
console.log('Channel: ' + channel.friendlyName);
}
},(error)=>console.log(error));
But I am getting the error
TypeError: tc.messagingClient.getSubscribedChannels is not a function
I am using below js files related for Twilio.
script(src="//media.twiliocdn.com/sdk/js/common/releases/0.1.5/twilio-common.js")
script(src="//media.twiliocdn.com/sdk/js/chat/releases/0.11.1/twilio-chat.js")
I have checked the inherited function in Twilio chat client object,but the getSubscribedChannels function is not listed there event.
