onCommandCommercial

Starts a commercial in the current channel.

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("commercial").policy(PrefixPolicy.prefixed).description("Starts a commercial in the current channel.").addSyntax("$command [commercial duration; valid values are 30, 60, 90, 120, 150 and 180]"))
void
onCommandCommercial

See Also