endPoll

Ends a Twitch poll, putting it in either a "TERMINATED" or "ARCHIVED" state.

Note: Must be called from inside a Fiber.

version(TwitchSupport && WithTwitchPlugin)
package
endPoll
(,
const string channelName
,
const string pollID
,
const bool terminate
,
const string caller = __FUNCTION__
)

Parameters

plugin TwitchPlugin

The current TwitchPlugin.

channelName string

Name of channel whose poll to end.

pollID string

ID of the specific poll to end.

terminate bool

If set, ends the poll by putting it in a "TERMINATED" state. If unset, ends it in an "ARCHIVED" way.

caller string

Name of the calling function.

Return Value

Type: auto

A TwitchPoll instance.

Throws

UnexpectedJSONException on unexpected JSON received. EmptyDataJSONException if the response contained an empty data array.

See Also