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 Summary
Constructors -
Method Summary
Modifier 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
-
ModerationAction
public ModerationAction()
-
-
Method Details
-
action
- Returns:
- The current harshest action
-
time
public 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
-
UnBan
public void UnBan()Attempts to set the current action toActions.UnBan -
UnTimeout
public void UnTimeout()Attempts to set the current action toActions.UnTimeout -
Delete
public void Delete()Attempts to set the current action toActions.Delete -
Delete
Attempts to set the current action toActions.Delete- Parameters:
warning- A warning message to send to chat;nullfor no message
-
ClearChat
public void ClearChat()Attempts to set the current action toActions.ClearChat -
Purge
public void Purge()Attempts to set the current action toActions.Timeoutwith a time of 1 -
Purge
Attempts to set the current action toActions.Timeoutwith a time of 1- Parameters:
reason- A reason message to attach to the Twitch logs;nullfor no messagewarning- A warning message to send to chat;nullfor no message
-
Timeout
public void Timeout()Attempts to set the current action toActions.Timeoutwith a time of 600 (10 minutes) -
Timeout
public void Timeout(int seconds) Attempts to set the current action toActions.Timeout- Parameters:
seconds- The number of seconds to timeout the user for
-
Timeout
Attempts to set the current action toActions.Timeout- Parameters:
seconds- The number of seconds to timeout the user forreason- A reason message to attach to the Twitch logs;nullfor no messagewarning- A warning message to send to chat;nullfor no message
-
Ban
public void Ban()Attempts to set the current action toActions.Ban -
Ban
Attempts to set the current action toActions.Ban- Parameters:
reason- A reason message to attach to the Twitch logs;nullfor no messagewarning- A warning message to send to chat;nullfor no message
-