Class CheerEvent
java.lang.Object
com.github.philippheuer.events4j.core.domain.Event
com.github.twitch4j.chat.events.TwitchEvent
com.github.twitch4j.chat.events.AbstractChannelEvent
com.github.twitch4j.chat.events.channel.CheerEvent
- All Implemented Interfaces:
com.github.philippheuer.events4j.api.domain.IEvent
,ReplyableEvent
- Direct Known Subclasses:
DirectCheerEvent
This event gets called when a user receives bits.
-
Constructor Summary
ConstructorDescriptionCheerEvent
(IRCMessageEvent event, EventChannel channel, EventUser user, String message, Integer bits, int subscriberMonths, int subscriptionTier, List<AutoModFlag> flags) Event Constructor -
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
boolean
getBits()
Amount of BitsgetFlags()
Regions ofgetMessage()
that were flagged by AutoMod (Unofficial)MessageRaw IRC Message Eventint
The exact number of months the user has been a subscriber, or zero if not subscribedint
The tier at which the user is subscribed (prime is treated as 1), or zero if not subscribedgetUser()
Event Target Userint
hashCode()
toString()
Methods inherited from class com.github.twitch4j.chat.events.AbstractChannelEvent
ban, getChannel, timeout, unban
Methods 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
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.github.twitch4j.chat.events.channel.ReplyableEvent
getChannel, reply
-
Constructor Details
-
CheerEvent
public CheerEvent(IRCMessageEvent event, EventChannel channel, EventUser user, String message, Integer bits, int subscriberMonths, int subscriptionTier, List<AutoModFlag> flags) Event Constructor- Parameters:
event
- The raw message event.channel
- The channel that this event originates from.user
- The donating user.message
- The donation message.bits
- The amount of bits.subscriberMonths
- The exact number of months the user has been a subscriber.subscriptionTier
- The tier at which the user is subscribed.flags
- The regions of the message that were flagged by AutoMod.
-
CheerEvent
public CheerEvent()
-
-
Method Details
-
toString
- Overrides:
toString
in classAbstractChannelEvent
-
getMessageEvent
Raw IRC Message Event- Specified by:
getMessageEvent
in interfaceReplyableEvent
-
getUser
Event Target User -
getMessage
Message -
getBits
Amount of Bits -
getSubscriberMonths
public int getSubscriberMonths()The exact number of months the user has been a subscriber, or zero if not subscribed -
getSubscriptionTier
public int getSubscriptionTier()The tier at which the user is subscribed (prime is treated as 1), or zero if not subscribed -
getFlags
Regions ofgetMessage()
that were flagged by AutoMod (Unofficial) -
equals
- Overrides:
equals
in classAbstractChannelEvent
-
canEqual
- Overrides:
canEqual
in classAbstractChannelEvent
-
hashCode
public int hashCode()- Overrides:
hashCode
in classAbstractChannelEvent
-