Class ChannelModerate
java.lang.Object
com.gmt2001.twitch.eventsub.EventSubSubscriptionType
com.gmt2001.twitch.eventsub.subscriptions.channel.ChannelModerate
- All Implemented Interfaces:
Flow.Subscriber<EventSubInternalEvent>
A moderator command has been executed.
- Author:
- gmt2001
-
Field Summary
FieldsFields inherited from class com.gmt2001.twitch.eventsub.EventSubSubscriptionType
flowsubscription, messageId, messageTimestamp, subscription -
Constructor Summary
ConstructorsConstructorDescriptionOnly used by EventSub for handler registrationUsed byonEventSubInternalNotificationEvent(com.gmt2001.twitch.eventsub.EventSubInternalNotificationEvent)to construct an object from an incoming notificationChannelModerate(String broadcaster_user_id) ConstructorChannelModerate(String broadcaster_user_id, String moderator_user_id) Constructor -
Method Summary
Modifier and TypeMethodDescriptionaction()The action that was executed.The data about terms being added or removed from automod.ban()The user who was banned.The broadcaster's user ID.The broadcaster's user login.The broadcaster's user display name.The user and message being deleted.The minimum follow time for followers mode.protected booleanisMatch(EventSubSubscription subscription) Returns true if the provided subscription is an instance of the current subscription type and matches the current subscription conditionsmod()The user who was added as mod.The executing moderator's user ID.The executing moderator's user login.The executing moderator's user display name.protected voidprotected EventSubSubscriptionCompiles the parameters of this object into anEventSubSubscriptionthat can be createdraid()The user who was raided and initial raider count.slow()The minimum time between messages for followers mode.timeout()The user who was timed out.unban()The user who was unbanned.The data about the updated unban request.unmod()The user who was removed from mod.unraid()The user who is no longer being raided.The user who was removed from timeout.unvip()The user who was removed from VIP.protected voidValidates that the provided parameters are acceptable for use inEventSubSubscriptionType.proposeSubscription()vip()The user who was added as VIP.Methods inherited from class com.gmt2001.twitch.eventsub.EventSubSubscriptionType
create, delete, deleteAll, findMatchingSubscriptionId, findMatchingSubscriptionIds, getExistingSubscription, isAlreadySubscribed, messageId, messageTimestamp, onComplete, onError, onEventSubInternalEvent, onEventSubInternalRevocationEvent, onEventSubInternalVerificationEvent, onNext, onSubscribe, proposeSubscriptionInternal, proposeTransport, subscribe, subscription
-
Field Details
-
TYPE
- See Also:
-
VERSION
- See Also:
-
-
Constructor Details
-
ChannelModerate
public ChannelModerate()Only used by EventSub for handler registration -
ChannelModerate
Used byonEventSubInternalNotificationEvent(com.gmt2001.twitch.eventsub.EventSubInternalNotificationEvent)to construct an object from an incoming notification- Parameters:
e- The event
-
ChannelModerate
Constructor- Parameters:
broadcaster_user_id- The user id of the broadcaster
-
ChannelModerate
Constructor- Parameters:
broadcaster_user_id- The user id of the broadcastermoderator_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
-
proposeSubscription
Description copied from class:EventSubSubscriptionTypeCompiles the parameters of this object into anEventSubSubscriptionthat can be created- Specified by:
proposeSubscriptionin classEventSubSubscriptionType- Returns:
-
validateParameters
Description copied from class:EventSubSubscriptionTypeValidates that the provided parameters are acceptable for use inEventSubSubscriptionType.proposeSubscription()- Specified by:
validateParametersin classEventSubSubscriptionType- Throws:
IllegalArgumentException- One of the parameters is not acceptable
-
onEventSubInternalNotificationEvent
- Overrides:
onEventSubInternalNotificationEventin classEventSubSubscriptionType
-
isMatch
Description copied from class:EventSubSubscriptionTypeReturns true if the provided subscription is an instance of the current subscription type and matches the current subscription conditions- Specified by:
isMatchin classEventSubSubscriptionType- Returns:
-
broadcasterUserId
The broadcaster's user ID.- Returns:
-
broadcasterUserLogin
The broadcaster's user login.- Returns:
-
broadcasterUserName
The broadcaster's user display name.- Returns:
-
moderatorUserId
The executing moderator's user ID.- Returns:
-
moderatorUserLogin
The executing moderator's user login.- Returns:
-
moderatorUserName
The executing moderator's user display name.- Returns:
-
action
The action that was executed.Known actions:
- ban
- unban
- timeout
- untimeout
- clear
- delete
- emoteonly
- emoteonlyoff
- followers
- followersoff
- uniquechat
- uniquechatoff
- slow
- slowoff
- subscribers
- subscribersoff
- raid
- unraid
- add_blocked_term
- remove_blocked_term
- add_permitted_term
- remove_permitted_term
- approve_unban_request
- deny_unban_request
- mod
- unmod
- vip
- unvip
- Returns:
-
followers
The minimum follow time for followers mode. Available whenaction()isfollowers- Returns:
-
slow
The minimum time between messages for followers mode. Available whenaction()isslow- Returns:
-
vip
The user who was added as VIP. Available whenaction()isvip- Returns:
-
unvip
The user who was removed from VIP. Available whenaction()isunvip- Returns:
-
mod
The user who was added as mod. Available whenaction()ismod- Returns:
-
unmod
The user who was removed from mod. Available whenaction()isunmod- Returns:
-
ban
The user who was banned. Available whenaction()isban- Returns:
-
unban
The user who was unbanned. Available whenaction()isunban- Returns:
-
timeout
The user who was timed out. Available whenaction()istimeout- Returns:
-
untimeout
The user who was removed from timeout. Available whenaction()isuntimeout- Returns:
-
raid
The user who was raided and initial raider count. Available whenaction()israid- Returns:
-
unraid
The user who is no longer being raided. Available whenaction()isunraid- Returns:
-
deleteData
The user and message being deleted. Available whenaction()isdelete- Returns:
-
automodTerms
The data about terms being added or removed from automod. Available whenaction()isadd_blocked_term,remove_blocked_term,add_permitted_term, orremove_permitted_term- Returns:
-
unbanRequest
The data about the updated unban request. Available whenaction()isapprove_unban_requestordeny_unban_request- Returns:
-