onCommandStartPoll

Starts a Twitch poll.

Note: Experimental, since we cannot try it out ourselves.

version(TwitchSupport && WithTwitchPlugin)
private
@IRCEventHandler().onEvent(IRCEvent.Type.CHAN).onEvent(IRCEvent.Type.SELFCHAN).permissionsRequired(Permissions.operator).channelPolicy(ChannelPolicy.home).fiber(true).addCommand(IRCEventHandler.Command().word("startpoll").policy(PrefixPolicy.prefixed).description("(Experimental) Starts a Twitch poll.").addSyntax(`$command "[poll title]" [duration] "[choice 1]" "[choice 2]" ...`)).addCommand(IRCEventHandler.Command().word("startvote").policy(PrefixPolicy.prefixed).hidden(true)).addCommand(IRCEventHandler.Command().word("createpoll").policy(PrefixPolicy.prefixed).hidden(true))
void
onCommandStartPoll

See Also