Class ChannelBanEvent
java.lang.Object
com.github.twitch4j.eventsub.events.EventSubEvent
com.github.twitch4j.eventsub.events.EventSubUserChannelEvent
com.github.twitch4j.eventsub.events.EventSubModerationEvent
com.github.twitch4j.eventsub.events.ChannelBanEvent
- All Implemented Interfaces:
ModeratorEvent
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
boolean
The UTC date and time (in RFC3339 format) of when the user was banned or put in a timeout.@Nullable Instant
Will be null if permanent ban.The reason behind the ban.int
hashCode()
Indicates whether the ban is permanent (true) or a timeout (false).toString()
Methods inherited from class com.github.twitch4j.eventsub.events.EventSubModerationEvent
getModeratorUserId, getModeratorUserLogin, getModeratorUserName
Methods inherited from class com.github.twitch4j.eventsub.events.EventSubUserChannelEvent
getBroadcasterUserId, getBroadcasterUserLogin, getBroadcasterUserName, getUserId, getUserLogin, getUserName
-
Constructor Details
-
ChannelBanEvent
public ChannelBanEvent()
-
-
Method Details
-
getReason
The reason behind the ban. -
getBannedAt
The UTC date and time (in RFC3339 format) of when the user was banned or put in a timeout. -
getEndsAt
Will be null if permanent ban. If it is a timeout, this field shows when the timeout will end. -
isPermanent
Indicates whether the ban is permanent (true) or a timeout (false). If true,getEndsAt()
will be null. -
toString
- Overrides:
toString
in classEventSubModerationEvent
-
equals
- Overrides:
equals
in classEventSubModerationEvent
-
canEqual
- Overrides:
canEqual
in classEventSubModerationEvent
-
hashCode
public int hashCode()- Overrides:
hashCode
in classEventSubModerationEvent
-