Package com.github.twitch4j.chat.events
Class IRCEventHandler
java.lang.Object
com.github.twitch4j.chat.events.IRCEventHandler
IRC Event Handler
Listens for any irc triggered events and created the corresponding events for the EventDispatcher.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncom.github.philippheuer.events4j.core.EventManager
Event ManagerTwitch Clientboolean
onAnnouncement
(IRCMessageEvent event) boolean
onBitsBadgeTier
(IRCMessageEvent event) ChatChannel Bits Badge Earned Event Parserboolean
onChannelCheer
(IRCMessageEvent event) ChatChannel Cheer (Bits) Eventboolean
onChannelMessage
(IRCMessageEvent event) ChatChannel Message Eventboolean
Deprecated.boolean
onChannelState
(IRCMessageEvent event) boolean
ChatChannel Subscription Eventboolean
User Joins ChatChannel Eventboolean
User Leaves ChatChannel Eventboolean
onCharityDonation
(IRCMessageEvent event) boolean
onClearChat
(IRCMessageEvent event) ChatChannel clearing chat, timeouting or banning user Eventboolean
onClearMsg
(IRCMessageEvent event) A single message was deleted in a channel by a moderatorvoid
onDirectCheer
(IRCMessageEvent event) Deprecated.boolean
onGiftReceived
(IRCMessageEvent event) ChatChannel Prime Community Gift Event Parser: user receives a gift from a prime memberboolean
onGlobalUserState
(IRCMessageEvent event) void
onHostOffEvent
(IRCMessageEvent event) Deprecated.void
onHostOnEvent
(IRCMessageEvent event) Deprecated.void
Deprecated.void
onListModsEvent
(IRCMessageEvent event) Deprecated.void
onListVipsEvent
(IRCMessageEvent event) Deprecated.void
Deprecated.boolean
onNames
(IRCMessageEvent event) Names list is received upon initial channel joinboolean
onNoticeEvent
(IRCMessageEvent event) boolean
onPayForward
(IRCMessageEvent event) ChatChannel Pay Forward Event Parser: user pays forward a gift they previously receivedboolean
onRaid
(IRCMessageEvent event) ChatChannel Raid Event (receiving)boolean
onRewardGift
(IRCMessageEvent event) ChatChannel Reward Gift Event Parser: monetary event triggered emotes to be sharedvoid
onRitual
(IRCMessageEvent event) Deprecated.no longer sent by twitch.boolean
onUnraid
(IRCMessageEvent event) ChatChannel Unraid Parser: raid cancellationboolean
onUserState
(IRCMessageEvent event) boolean
onWhisper
(IRCMessageEvent event) Whisper Event
-
Constructor Details
-
IRCEventHandler
Constructor- Parameters:
twitchChat
- The Twitch Chat instance
-
-
Method Details
-
onAnnouncement
-
onChannelMessage
ChatChannel Message Event- Parameters:
event
- IRCMessageEvent
-
onWhisper
Whisper Event- Parameters:
event
- IRCMessageEvent
-
onBitsBadgeTier
ChatChannel Bits Badge Earned Event Parser- Parameters:
event
- theIRCMessageEvent
to be checked
-
onChannelCheer
ChatChannel Cheer (Bits) Event- Parameters:
event
- IRCMessageEvent
-
onDirectCheer
@Unofficial @Deprecated @ScheduledForRemoval(inVersion="1.17.0") public void onDirectCheer(IRCMessageEvent event) Deprecated.ChatChannel Direct Cheer (Currency) Event- Parameters:
event
- IRCMessageEvent
-
onChannelSubscription
ChatChannel Subscription Event- Parameters:
event
- IRCMessageEvent
-
onGiftReceived
ChatChannel Prime Community Gift Event Parser: user receives a gift from a prime member- Parameters:
event
- theIRCMessageEvent
to be checked
-
onPayForward
ChatChannel Pay Forward Event Parser: user pays forward a gift they previously received- Parameters:
event
- theIRCMessageEvent
to be checked
-
onCharityDonation
-
onRaid
ChatChannel Raid Event (receiving)- Parameters:
event
- IRCMessageEvent
-
onUnraid
ChatChannel Unraid Parser: raid cancellation- Parameters:
event
- theIRCMessageEvent
to be checked
-
onRewardGift
ChatChannel Reward Gift Event Parser: monetary event triggered emotes to be shared- Parameters:
event
- theIRCMessageEvent
to be checked
-
onRitual
Deprecated.no longer sent by twitch.ChatChannel Ritual Event Parser: celebration of a shared viewer milestone- Parameters:
event
- theIRCMessageEvent
to be checked- See Also:
-
onClearChat
ChatChannel clearing chat, timeouting or banning user Event- Parameters:
event
- IRCMessageEvent
-
onClearMsg
A single message was deleted in a channel by a moderator- Parameters:
event
- IRCMessageEvent- See Also:
-
onNames
Names list is received upon initial channel join- Parameters:
event
-IRCMessageEvent
-
onChannnelClientJoinEvent
User Joins ChatChannel Event- Parameters:
event
- IRCMessageEvent
-
onChannnelClientLeaveEvent
User Leaves ChatChannel Event- Parameters:
event
- IRCMessageEvent
-
onChannelModChange
@Deprecated @ScheduledForRemoval(inVersion="1.17.0") public boolean onChannelModChange(IRCMessageEvent event) Deprecated.Mod Status Change Event- Parameters:
event
- IRCMessageEvent
-
onNoticeEvent
-
onHostOnEvent
@Deprecated @ScheduledForRemoval(inVersion="1.17.0") public void onHostOnEvent(IRCMessageEvent event) Deprecated. -
onHostOffEvent
@Deprecated @ScheduledForRemoval(inVersion="1.17.0") public void onHostOffEvent(IRCMessageEvent event) Deprecated. -
onInboundHostEvent
@Deprecated @ScheduledForRemoval(inVersion="1.17.0") public void onInboundHostEvent(IRCMessageEvent event) Deprecated. -
onListModsEvent
@Deprecated @ScheduledForRemoval(inVersion="1.17.0") public void onListModsEvent(IRCMessageEvent event) Deprecated. -
onListVipsEvent
@Deprecated @ScheduledForRemoval(inVersion="1.17.0") public void onListVipsEvent(IRCMessageEvent event) Deprecated. -
onChannelState
-
onMessageDeleteResponse
@Deprecated @ScheduledForRemoval(inVersion="1.17.0") public void onMessageDeleteResponse(IRCMessageEvent event) Deprecated. -
onUserState
-
onGlobalUserState
-
getTwitchChat
Twitch Client -
getEventManager
public com.github.philippheuer.events4j.core.EventManager getEventManager()Event Manager
-