Package com.github.twitch4j.chat.events
Class AbstractChannelMessageEvent
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.AbstractChannelMessageEvent
- All Implemented Interfaces:
com.github.philippheuer.events4j.api.domain.IEvent
,ReplyableEvent
- Direct Known Subclasses:
ChannelMessageActionEvent
,ChannelMessageEvent
public abstract class AbstractChannelMessageEvent
extends AbstractChannelEvent
implements ReplyableEvent
-
Constructor Summary
ConstructorDescriptionAbstractChannelMessageEvent
(EventChannel channel, IRCMessageEvent messageEvent, EventUser user, String message) -
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
boolean
getFlags()
MessageRAW Message EventgetNonce()
NoncePermissions of the userint
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()
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
-
AbstractChannelMessageEvent
public AbstractChannelMessageEvent(EventChannel channel, IRCMessageEvent messageEvent, EventUser user, String message)
-
-
Method Details
-
getPermissions
Permissions of the user -
getFlags
- Returns:
- the regions of the message that were flagged by AutoMod.
-
getMessageEvent
RAW Message Event- Specified by:
getMessageEvent
in interfaceReplyableEvent
-
getUser
User -
getMessage
Message -
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 -
toString
- Overrides:
toString
in classAbstractChannelEvent
-
equals
- Overrides:
equals
in classAbstractChannelEvent
-
canEqual
- Overrides:
canEqual
in classAbstractChannelEvent
-
hashCode
public int hashCode()- Overrides:
hashCode
in classAbstractChannelEvent
-
getNonce
Nonce
-