followChannel(channelName) getting current channel name

Hi all,

I’m working on an extension to show follow time for a viewer, if the viewer has not followed I want to show the follow button. The only issue is, how do I get the current channel name?

Thanks

S7evin

The onAuthorised callback has a object that contains the channelId so you can use that in a call to TwitchAPI to get the username.

That said would be easier if followChannel accepted a name or a ID…

@BarryCarlyon, I thought that would be he case.

Thanks