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

TypeError: tc.messagingClient.getSubscribedChannels is not a function #594

@riyajk

Description

@riyajk

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.
twilio

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions