Package com.github.twitch4j.chat.events
Class AbstractChannelEvent
java.lang.Object
com.github.philippheuer.events4j.core.domain.Event
com.github.twitch4j.chat.events.TwitchEvent
com.github.twitch4j.chat.events.AbstractChannelEvent
- All Implemented Interfaces:
com.github.philippheuer.events4j.api.domain.IEvent
- Direct Known Subclasses:
AbstractChannelMessageEvent,BitsBadgeEarnedEvent,ChannelJoinEvent,ChannelLeaveEvent,ChannelModEvent,ChannelNoticeEvent,ChannelStateEvent,ChannelStatesEvent,CharityDonationEvent,CheerEvent,ClearChatEvent,DeleteMessageEvent,DonationEvent,ExtendSubscriptionEvent,FollowEvent,GiftedMultiMonthSubCourtesyEvent,GiftSubscriptionsEvent,GiftSubUpgradeEvent,HostOffEvent,HostOnEvent,ListModsEvent,ListVipsEvent,MessageDeleteError,MessageDeleteSuccess,ModAnnouncementEvent,PayForwardEvent,PrimeGiftReceivedEvent,PrimeSubUpgradeEvent,RaidCancellationEvent,RaidEvent,RewardGiftEvent,RitualEvent,SubscriptionEvent,UserBanEvent,UserStateEvent,UserTimeoutEvent,ViewerMilestoneEvent
This event is a base for events that originate from a channel
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidDeprecated.Twitch decommissioned this method on February 18, 2023; migrate to TwitchHelix#banUserprotected booleanbooleanEvent ChannelinthashCode()voidDeprecated.Twitch decommissioned this method on February 18, 2023; migrate to TwitchHelix#banUsertoString()voidDeprecated.Twitch decommissioned this method on February 18, 2023; migrate to TwitchHelix#unbanUserMethods inherited from class com.github.twitch4j.chat.events.TwitchEvent
getTwitchChatMethods inherited from class com.github.philippheuer.events4j.core.domain.Event
getEventId, getFiredAt, getFiredAtInstant, getServiceMediator, setEventId, setFiredAt, setFiredAtInstant, setServiceMediator
-
Constructor Details
-
AbstractChannelEvent
Event Constructor- Parameters:
channel- The channel that this event originates from.
-
AbstractChannelEvent
public AbstractChannelEvent()
-
-
Method Details
-
timeout
@Deprecated @ScheduledForRemoval(inVersion="2.0.0") public void timeout(String user, Duration duration, String reason) Deprecated.Twitch decommissioned this method on February 18, 2023; migrate to TwitchHelix#banUserTimeout a user- Parameters:
user- usernameduration- durationreason- reason
-
ban
Deprecated.Twitch decommissioned this method on February 18, 2023; migrate to TwitchHelix#banUserBan a user- Parameters:
user- usernamereason- reason
-
unban
Deprecated.Twitch decommissioned this method on February 18, 2023; migrate to TwitchHelix#unbanUserUnban a user- Parameters:
user- username
-
toString
- Overrides:
toStringin classTwitchEvent
-
getChannel
Event Channel -
equals
- Overrides:
equalsin classTwitchEvent
-
canEqual
- Overrides:
canEqualin classTwitchEvent
-
hashCode
public int hashCode()- Overrides:
hashCodein classTwitchEvent
-