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
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Deprecated.Twitch decommissioned this method on February 18, 2023; migrate to TwitchHelix#banUserprotected boolean
boolean
Event Channelint
hashCode()
void
Deprecated.Twitch decommissioned this method on February 18, 2023; migrate to TwitchHelix#banUsertoString()
void
Deprecated.Twitch decommissioned this method on February 18, 2023; migrate to TwitchHelix#unbanUserMethods inherited from class com.github.twitch4j.chat.events.TwitchEvent
getTwitchChat
Methods 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:
toString
in classTwitchEvent
-
getChannel
Event Channel -
equals
- Overrides:
equals
in classTwitchEvent
-
canEqual
- Overrides:
canEqual
in classTwitchEvent
-
hashCode
public int hashCode()- Overrides:
hashCode
in classTwitchEvent
-