Klasse ChatModerationAction
java.lang.Object
com.github.twitch4j.pubsub.domain.ChatModerationAction
-
Verschachtelte Klassen - Übersicht
Verschachtelte KlassenModifizierer und TypKlasseBeschreibungstatic enumstatic enum -
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungprotected booleanbooleangetArgs()The arguments passed to the moderation action command.The login for the account that triggered the moderation actionThe user id for the account that triggered the moderation actionWhether the moderation action was triggered by AutoModThe specific moderation action that took place, in a convenient enum formThe specific moderation type that took place, in a convenient enum formgetMsgId()The relevant message id, if the action was a message deletionThe user id for the targeted account by the moderation action (e.g.The user name for the targeted account by the moderation action (e.g.getType()The raw string for the class of moderation action.inthashCode()voidThe arguments passed to the moderation action command.voidsetCreatedBy(String createdBy) The login for the account that triggered the moderation actionvoidsetCreatedByUserId(String createdByUserId) The user id for the account that triggered the moderation actionvoidsetFromAutomod(Boolean fromAutomod) Whether the moderation action was triggered by AutoModvoidsetModerationAction(ChatModerationAction.ModerationAction moderationAction) The specific moderation action that took place, in a convenient enum formvoidThe relevant message id, if the action was a message deletionvoidsetTargetUserId(String targetUserId) The user id for the targeted account by the moderation action (e.g.voidsetTargetUserLogin(String targetUserLogin) The user name for the targeted account by the moderation action (e.g.voidThe raw string for the class of moderation action.toString()
-
Konstruktordetails
-
ChatModerationAction
public ChatModerationAction() -
ChatModerationAction
-
-
Methodendetails
-
getTargetedUserName
- Gibt zurück:
- optional wrapper around the username that was specified in a ban, unban, timeout, untimeout, vip, unvip, mod, unmod, host, raid, or delete message command
-
getReason
- Gibt zurück:
- optional wrapper around the reason associated with the ban or timeout (or an empty string if none was specified)
-
getDeletedMessage
- Gibt zurück:
- optional wrapper around the message that was deleted
-
getTimeoutDuration
- Gibt zurück:
- optional wrapper around the duration the user was timed out for, in seconds
-
getSlowDuration
- Gibt zurück:
- optional wrapper around the slow mode delay, in seconds
-
getFollowersDuration
- Gibt zurück:
- optional wrapper around the duration followers only mode was set to, in minutes
-
getType
The raw string for the class of moderation action. Can be "chat_channel_moderation" or "chat_login_moderation" or "chat_targeted_login_moderation"- Siehe auch:
-
getModerationAction
The specific moderation action that took place, in a convenient enum form -
getArgs
The arguments passed to the moderation action command. Can be null.- Siehe auch:
-
getCreatedBy
The login for the account that triggered the moderation action -
getCreatedByUserId
The user id for the account that triggered the moderation action -
getMsgId
The relevant message id, if the action was a message deletion -
getTargetUserId
The user id for the targeted account by the moderation action (e.g. the user id that was banned) -
getTargetUserLogin
The user name for the targeted account by the moderation action (e.g. the user login that was banned)Note: While this field is included in the pubsub response, the API appears to never populate it with a non-empty string
-
getFromAutomod
Whether the moderation action was triggered by AutoMod- Siehe auch:
-
setType
The raw string for the class of moderation action. Can be "chat_channel_moderation" or "chat_login_moderation" or "chat_targeted_login_moderation"- Siehe auch:
-
setModerationAction
The specific moderation action that took place, in a convenient enum form -
setArgs
The arguments passed to the moderation action command. Can be null.- Siehe auch:
-
setCreatedBy
The login for the account that triggered the moderation action -
setCreatedByUserId
The user id for the account that triggered the moderation action -
setMsgId
The relevant message id, if the action was a message deletion -
setTargetUserId
The user id for the targeted account by the moderation action (e.g. the user id that was banned) -
setTargetUserLogin
The user name for the targeted account by the moderation action (e.g. the user login that was banned)Note: While this field is included in the pubsub response, the API appears to never populate it with a non-empty string
-
setFromAutomod
Whether the moderation action was triggered by AutoMod- Siehe auch:
-
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-
getModType
The specific moderation type that took place, in a convenient enum form
-