Package tv.phantombot.event.irc.message
Class IrcModerationEvent.ModerationAction
java.lang.Object
tv.phantombot.event.irc.message.IrcModerationEvent.ModerationAction
- Enclosing class:
- IrcModerationEvent
Determines the harshest action requested by a moderation script
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionaction()voidBan()Attempts to set the current action toActions.BanvoidAttempts to set the current action toActions.BanvoidAttempts to set the current action toActions.ClearChatvoidDelete()Attempts to set the current action toActions.DeletevoidAttempts to set the current action toActions.DeletevoidPurge()Attempts to set the current action toActions.Timeoutwith a time of 1voidAttempts to set the current action toActions.Timeoutwith a time of 1reason()inttime()voidTimeout()Attempts to set the current action toActions.Timeoutwith a time of 600 (10 minutes)voidTimeout(int seconds) Attempts to set the current action toActions.TimeoutvoidAttempts to set the current action toActions.TimeoutvoidUnBan()Attempts to set the current action toActions.UnBanvoidAttempts to set the current action toActions.UnTimeoutwarning()
- 
Constructor Details- 
ModerationActionpublic ModerationAction()
 
- 
- 
Method Details- 
action- Returns:
- The current harshest action
 
- 
timepublic int time()- Returns:
- If executing Actions.Timeout, the amount of time, in seconds
 
- 
reason- Returns:
- The reason string for Actions.TimeoutandActions.Ban
 
- 
warning- Returns:
- The warning message to send to chat
 
- 
UnBanpublic void UnBan()Attempts to set the current action toActions.UnBan
- 
UnTimeoutpublic void UnTimeout()Attempts to set the current action toActions.UnTimeout
- 
Deletepublic void Delete()Attempts to set the current action toActions.Delete
- 
DeleteAttempts to set the current action toActions.Delete- Parameters:
- warning- A warning message to send to chat;- nullfor no message
 
- 
ClearChatpublic void ClearChat()Attempts to set the current action toActions.ClearChat
- 
Purgepublic void Purge()Attempts to set the current action toActions.Timeoutwith a time of 1
- 
PurgeAttempts to set the current action toActions.Timeoutwith a time of 1- Parameters:
- reason- A reason message to attach to the Twitch logs;- nullfor no message
- warning- A warning message to send to chat;- nullfor no message
 
- 
Timeoutpublic void Timeout()Attempts to set the current action toActions.Timeoutwith a time of 600 (10 minutes)
- 
Timeoutpublic void Timeout(int seconds) Attempts to set the current action toActions.Timeout- Parameters:
- seconds- The number of seconds to timeout the user for
 
- 
TimeoutAttempts to set the current action toActions.Timeout- Parameters:
- seconds- The number of seconds to timeout the user for
- reason- A reason message to attach to the Twitch logs;- nullfor no message
- warning- A warning message to send to chat;- nullfor no message
 
- 
Banpublic void Ban()Attempts to set the current action toActions.Ban
- 
BanAttempts to set the current action toActions.Ban- Parameters:
- reason- A reason message to attach to the Twitch logs;- nullfor no message
- warning- A warning message to send to chat;- nullfor no message
 
 
-