Class AutomodMessage
java.lang.Object
com.gmt2001.twitch.eventsub.EventSubSubscriptionType
com.gmt2001.twitch.eventsub.subscriptions.automod.message.AutomodMessage
- All Implemented Interfaces:
- Flow.Subscriber<EventSubInternalEvent>
- Direct Known Subclasses:
- AutomodMessageHold,- AutomodMessageUpdate
public abstract sealed class AutomodMessage
extends EventSubSubscriptionType
permits AutomodMessageHold, AutomodMessageUpdate
Common message data for 
AutomodMessageHold and AutomodMessageUpdate.- Author:
- gmt2001
- 
Field SummaryFields inherited from class com.gmt2001.twitch.eventsub.EventSubSubscriptionTypeflowsubscription, messageId, messageTimestamp, subscription
- 
Constructor SummaryConstructorsConstructorDescriptionOnly used by EventSub for handler registrationUsed byEventSubSubscriptionType.onEventSubInternalNotificationEvent(com.gmt2001.twitch.eventsub.EventSubInternalNotificationEvent)to construct an object from an incoming notificationAutomodMessage(String broadcaster_user_id, String moderator_user_id) Constructor
- 
Method SummaryModifier and TypeMethodDescriptionThe broadcaster's user ID.The broadcaster's user login.The broadcaster's user display name.category()The automod category that triggered the message to be held.heldAt()The timestamp of when the message was held.The timestamp of when the message was held as a string.intlevel()The automod severity rating of the message, according to thecategory()trigger.message()The body of the flagged message.The ID of the message that was flagged by automod.The moderator's user ID.userId()The message sender's user ID.The message sender's user login.userName()The message sender's user display name.protected voidValidates that the provided parameters are acceptable for use inEventSubSubscriptionType.proposeSubscription()Methods inherited from class com.gmt2001.twitch.eventsub.EventSubSubscriptionTypecreate, delete, deleteAll, findMatchingSubscriptionId, findMatchingSubscriptionIds, getExistingSubscription, isAlreadySubscribed, isMatch, messageTimestamp, onComplete, onError, onEventSubInternalEvent, onEventSubInternalNotificationEvent, onEventSubInternalRevocationEvent, onEventSubInternalVerificationEvent, onNext, onSubscribe, proposeSubscription, proposeSubscriptionInternal, proposeTransport, subscribe, subscription
- 
Constructor Details- 
AutomodMessagepublic AutomodMessage()Only used by EventSub for handler registration
- 
AutomodMessageUsed byEventSubSubscriptionType.onEventSubInternalNotificationEvent(com.gmt2001.twitch.eventsub.EventSubInternalNotificationEvent)to construct an object from an incoming notification- Parameters:
- e- The event
 
- 
AutomodMessageConstructor- Parameters:
- broadcaster_user_id- The user id of the broadcaster
- moderator_user_id- The ID of the moderator of the channel you want to get notifications for. If you have authorization from the broadcaster rather than a moderator, specify the broadcaster's user ID here
 
 
- 
- 
Method Details- 
validateParametersDescription copied from class:EventSubSubscriptionTypeValidates that the provided parameters are acceptable for use inEventSubSubscriptionType.proposeSubscription()- Specified by:
- validateParametersin class- EventSubSubscriptionType
- Throws:
- IllegalArgumentException- One of the parameters is not acceptable
 
- 
broadcasterUserIdThe broadcaster's user ID.- Returns:
 
- 
broadcasterUserLoginThe broadcaster's user login.- Returns:
 
- 
broadcasterUserNameThe broadcaster's user display name.- Returns:
 
- 
userIdThe message sender's user ID.- Returns:
 
- 
userLoginThe message sender's user login.- Returns:
 
- 
userNameThe message sender's user display name.- Returns:
 
- 
moderatorUserIdThe moderator's user ID.- Returns:
 
- 
messageIdThe ID of the message that was flagged by automod.- Overrides:
- messageIdin class- EventSubSubscriptionType
- Returns:
 
- 
messageThe body of the flagged message.- Returns:
 
- 
categoryThe automod category that triggered the message to be held.- Returns:
 
- 
levelpublic int level()The automod severity rating of the message, according to thecategory()trigger.- Returns:
 
- 
heldAtStringThe timestamp of when the message was held as a string.- Returns:
 
- 
heldAtThe timestamp of when the message was held.- Returns:
 
 
-