Class UserStateEvent
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.UserStateEvent
- All Implemented Interfaces:
com.github.philippheuer.events4j.api.domain.IEvent
This event gets called when a user joins a channel or sends a PRIVMSG to a channel.
-
Constructor Summary
-
Method Summary
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
-
Constructor Details
-
UserStateEvent
Event constructor- Parameters:
messageEvent
- raw message event
-
-
Method Details
-
getColor
- Returns:
- Hexadecimal RGB color code, or empty if it is never set
-
getDisplayName
- Returns:
- The user's display name, or empty if it is never set
-
isSubscriber
public boolean isSubscriber()- Returns:
- true if user is subscribed, false otherwise
-
getSubscriberMonth
- Returns:
- number of months the user has been a subscriber, or empty if they are not subscribed
-
isBroadcaster
public boolean isBroadcaster()- Returns:
- true if user is broadcaster, false otherwise
-
isModerator
public boolean isModerator()- Returns:
- true if user is moderator, false otherwise
-
isStaff
public boolean isStaff()- Returns:
- true if user is staff, false otherwise
-
isPrimeOrTurbo
public boolean isPrimeOrTurbo()- Returns:
- true if user have prime or turbo badge, false otherwise
-
toString
- Overrides:
toString
in classAbstractChannelEvent
-
getMessageEvent
RAW Message Event -
getEmoteSets
List of emote sets. -
equals
- Overrides:
equals
in classAbstractChannelEvent
-
canEqual
- Overrides:
canEqual
in classAbstractChannelEvent
-
hashCode
public int hashCode()- Overrides:
hashCode
in classAbstractChannelEvent
-