Class AutomodMessageEvent
java.lang.Object
com.github.twitch4j.eventsub.events.EventSubEvent
com.github.twitch4j.eventsub.events.EventSubUserChannelEvent
com.github.twitch4j.eventsub.events.AutomodMessageEvent
- Direct Known Subclasses:
AutomodMessageHoldV2Event
,AutomodMessageUpdateV2Event
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
boolean
@Nullable Automod
Optional: If the message was caught by automod, this will be populated.@Nullable BlockedTermWrapper
Optional: If the message was caught due to a blocked term, this will be populated.The timestamp of when automod saved the message.The body of the message.The ID of the message that was flagged by automod.Whether the message was caught by automod or blocked term usage.int
hashCode()
toString()
Methods inherited from class com.github.twitch4j.eventsub.events.EventSubUserChannelEvent
getBroadcasterUserId, getBroadcasterUserLogin, getBroadcasterUserName, getUserId, getUserLogin, getUserName
-
Constructor Details
-
AutomodMessageEvent
public AutomodMessageEvent()
-
-
Method Details
-
getMessageId
The ID of the message that was flagged by automod. -
getMessage
The body of the message. -
getReason
Whether the message was caught by automod or blocked term usage. -
getAutomod
Optional: If the message was caught by automod, this will be populated. -
getBlockedTerm
Optional: If the message was caught due to a blocked term, this will be populated. -
getHeldAt
The timestamp of when automod saved the message. -
toString
- Overrides:
toString
in classEventSubUserChannelEvent
-
equals
- Overrides:
equals
in classEventSubUserChannelEvent
-
canEqual
- Overrides:
canEqual
in classEventSubUserChannelEvent
-
hashCode
public int hashCode()- Overrides:
hashCode
in classEventSubUserChannelEvent
-