Class ChannelModerateEvent
- All Implemented Interfaces:
ModeratorEvent
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
boolean
@NotNull Action
The action performed.@Nullable AutomodTerms
Metadata associated with automod terms changes.@Nullable BanTarget
getBan()
Metadata associated with the ban command.@Nullable DeleteTarget
Metadata associated with the delete command.@Nullable FollowersMode
Metadata associated with the followers command.@Nullable UserTarget
getMod()
Metadata associated with the mod command.@Nullable RaidTarget
getRaid()
Metadata associated with the raid command.@Nullable SlowMode
getSlow()
Metadata associated with the slow command.@Nullable TimeoutTarget
Metadata associated with the timeout command.@Nullable UserTarget
getUnban()
Metadata associated with the unban command.@Nullable UnbanRequest
Metadata associated with actioning an unban request.@Nullable UserTarget
getUnmod()
Metadata associated with the unmod command.@Nullable UserTarget
Metadata associated with the unraid command.@Nullable UserTarget
Metadata associated with the untimeout command.@Nullable UserTarget
getUnvip()
Metadata associated with the unvip command.@Nullable UserTarget
getVip()
Metadata associated with the vip command.@Nullable Warning
getWarn()
Metadata associated with the warn command.int
hashCode()
toString()
Methods inherited from class com.github.twitch4j.eventsub.events.EventSubModeratorEvent
getModeratorUserId, getModeratorUserLogin, getModeratorUserName
Methods inherited from class com.github.twitch4j.eventsub.events.EventSubChannelEvent
getBroadcasterUserId, getBroadcasterUserLogin, getBroadcasterUserName
-
Constructor Details
-
ChannelModerateEvent
public ChannelModerateEvent()
-
-
Method Details
-
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_TERM
orAction.ADD_PERMITTED_TERM
orAction.DELETE_BLOCKED_TERM
orAction.DELETE_PERMITTED_TERM
. -
getUnbanRequest
Metadata associated with actioning an unban request.This is only populated when
getAction()
isAction.APPROVE_UNBAN_REQUEST
orAction.DENY_UNBAN_REQUEST
. -
getWarn
Metadata associated with the warn command.This is only populated when
getAction()
isAction.WARN
. -
toString
- Overrides:
toString
in classEventSubModeratorEvent
-
equals
- Overrides:
equals
in classEventSubModeratorEvent
-
canEqual
- Overrides:
canEqual
in classEventSubModeratorEvent
-
hashCode
public int hashCode()- Overrides:
hashCode
in classEventSubModeratorEvent
-