onCommandPoll

Instigates a poll or stops an ongoing one.

If starting one a duration and two or more voting choices have to be passed.

version(WithPollPlugin)
private
@IRCEventHandler().onEvent(IRCEvent.Type.CHAN).permissionsRequired(Permissions.operator).channelPolicy(ChannelPolicy.home).addCommand(IRCEventHandler.Command().word("poll").policy(PrefixPolicy.prefixed).description(`Starts or stops a poll. Pass "abort" to abort, or "end" to end early.`).addSyntax("$command [duration] [choice 1] [choice 2] ...").addSyntax("$command abort").addSyntax("$command end")).addCommand(IRCEventHandler.Command().word("vote").policy(PrefixPolicy.prefixed).hidden(true))
void
onCommandPoll