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 voteID
,
const Flag!"terminate" terminate
,
const string caller = __FUNCTION__
)

Parameters

plugin TwitchPlugin

The current TwitchPlugin.

channelName string

Name of channel whose poll to end.

voteID string

ID of the specific vote to end.

terminate Flag!"terminate"

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

The JSONValue of the first response returned when ending the poll.

Throws

UnexpectedJSONException on unexpected JSON.

Meta