Class ChannelModerateEvent
- All Implemented Interfaces:
ModeratorEvent
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanboolean@NotNull ActionThe action performed.@Nullable AutomodTermsMetadata associated with automod terms changes.@Nullable BanTargetgetBan()Metadata associated with the ban command.@Nullable DeleteTargetMetadata associated with the delete command.@Nullable FollowersModeMetadata associated with the followers command.@Nullable UserTargetgetMod()Metadata associated with the mod command.@Nullable RaidTargetgetRaid()Metadata associated with the raid command.@Nullable BanTargetMetadata associated with the ban command.@Nullable DeleteTargetMetadata associated with the delete command.@Nullable TimeoutTargetMetadata associated with the timeout command.@Nullable UserTargetMetadata associated with the unban command.@Nullable UserTargetMetadata associated with the untimeout command.@Nullable SlowModegetSlow()Metadata associated with the slow command.@Nullable StringThe channel ID in which the action originally occurred.@Nullable StringThe channel login name in which the action originally occurred.@Nullable StringThe channel display name in which the action originally occurred.@Nullable TimeoutTargetMetadata associated with the timeout command.@Nullable UserTargetgetUnban()Metadata associated with the unban command.@Nullable UnbanRequestMetadata associated with actioning an unban request.@Nullable UserTargetgetUnmod()Metadata associated with the unmod command.@Nullable UserTargetMetadata associated with the unraid command.@Nullable UserTargetMetadata associated with the untimeout command.@Nullable UserTargetgetUnvip()Metadata associated with the unvip command.@Nullable UserTargetgetVip()Metadata associated with the vip command.@Nullable WarninggetWarn()Metadata associated with the warn command.inthashCode()toString()Methods inherited from class com.github.twitch4j.eventsub.events.EventSubModeratorEvent
getModeratorUserId, getModeratorUserLogin, getModeratorUserNameMethods inherited from class com.github.twitch4j.eventsub.events.EventSubChannelEvent
getBroadcasterUserId, getBroadcasterUserLogin, getBroadcasterUserName
-
Constructor Details
-
ChannelModerateEvent
public ChannelModerateEvent()
-
-
Method Details
-
getSourceBroadcasterUserId
The channel ID in which the action originally occurred. Is null when the moderator action happens in the same channel as the broadcaster. Is not null when in a shared chat session, and the action happens in the channel of a participant other than the broadcaster. -
getSourceBroadcasterUserLogin
The channel login name in which the action originally occurred. Is null when the moderator action happens in the same channel as the broadcaster. Is not null when in a shared chat session, and the action happens in the channel of a participant other than the broadcaster. -
getSourceBroadcasterUserName
The channel display name in which the action originally occurred. Is null when the moderator action happens in the same channel as the broadcaster. Is not null when in a shared chat session, and the action happens in the channel of a participant other than the broadcaster. -
getAction
The action performed.Note that the following actions do not have any associated metadata:
Action.CLEAR,Action.EMOTEONLY,Action.EMOTEONLYOFF,Action.FOLLOWERSOFF,Action.SLOWOFF,Action.SUBSCRIBERS,Action.SUBSCRIBERSOFF,Action.UNIQUECHAT, andAction.UNIQUECHATOFF. -
getFollowers
Metadata associated with the followers command.This is only populated when
getAction()isAction.FOLLOWERS. -
getSlow
Metadata associated with the slow command.This is only populated when
getAction()isAction.SLOW. -
getVip
Metadata associated with the vip command.This is only populated when
getAction()isAction.VIP. -
getUnvip
Metadata associated with the unvip command.This is only populated when
getAction()isAction.UNVIP. -
getMod
Metadata associated with the mod command.This is only populated when
getAction()isAction.MOD. -
getUnmod
Metadata associated with the unmod command.This is only populated when
getAction()isAction.UNMOD. -
getBan
Metadata associated with the ban command.This is only populated when
getAction()isAction.BAN. -
getUnban
Metadata associated with the unban command.This is only populated when
getAction()isAction.UNBAN. -
getTimeout
Metadata associated with the timeout command.This is only populated when
getAction()isAction.TIMEOUT. -
getUntimeout
Metadata associated with the untimeout command.This is only populated when
getAction()isAction.UNTIMEOUT. -
getRaid
Metadata associated with the raid command.This is only populated when
getAction()isAction.RAID. -
getUnraid
Metadata associated with the unraid command.This is only populated when
getAction()isAction.UNRAID. -
getDelete
Metadata associated with the delete command.This is only populated when
getAction()isAction.DELETE. -
getAutomodTerms
Metadata associated with automod terms changes.This is only populated when
getAction()isAction.ADD_BLOCKED_TERMorAction.ADD_PERMITTED_TERMorAction.DELETE_BLOCKED_TERMorAction.DELETE_PERMITTED_TERM. -
getUnbanRequest
Metadata associated with actioning an unban request.This is only populated when
getAction()isAction.APPROVE_UNBAN_REQUESTorAction.DENY_UNBAN_REQUEST. -
getWarn
Metadata associated with the warn command.This is only populated when
getAction()isAction.WARN. -
toString
- Overrides:
toStringin classEventSubModeratorEvent
-
equals
- Overrides:
equalsin classEventSubModeratorEvent
-
canEqual
- Overrides:
canEqualin classEventSubModeratorEvent
-
hashCode
public int hashCode()- Overrides:
hashCodein classEventSubModeratorEvent
-