createPoll

Creates a Twitch poll in the specified channel.

Note: Must be called from inside a Fiber.

version(TwitchSupport && WithTwitchPlugin)
createPoll
(,
const string channelName
,
const string title
,
const string durationString
,
const string[] choices
,
const string caller = __FUNCTION__
)

Parameters

plugin TwitchPlugin

The current TwitchPlugin.

channelName string

Name of channel to create the poll in.

title string

Poll title.

durationString string

How long the poll should run for in seconds (as a string).

choices string[]

A string array of poll choices.

caller string

Name of the calling function.

Return Value

Type: auto

A TwitchPoll instance.

See Also