getSubscribers

Fetches a list of all subscribers of the specified channel. A broadcaster-level access token is required.

Note: Must be called from inside a Fiber.

version(TwitchSupport && WithTwitchPlugin)
package
getSubscribers
(,
const string channelName
,
const bool totalOnly
,
const string caller = __FUNCTION__
)

Parameters

plugin TwitchPlugin

The current TwitchPlugin.

channelName string

Name of channel to fetch subscribers of.

totalOnly bool

Whether or not to return all subscribers or only one stub entry with the total number of subscribers in its .total member.

caller string

Name of the calling function.

Return Value

Type: auto

An array of Voldemort subscribers.

Throws

UnexpectedJSONException on unexpected JSON.