Class ModAnnouncementEvent
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.ModAnnouncementEvent
- All Implemented Interfaces:
com.github.philippheuer.events4j.api.domain.IEvent
Fired when the broadcaster or a moderator publishes an accented message via
/announce
.
Since this event is not officially documented in the IRC guide, it could change or stop working at any time.
- See Also:
-
Constructor Summary
ConstructorDescriptionModAnnouncementEvent
(IRCMessageEvent messageEvent, EventChannel channel, EventUser announcer, String message, AnnouncementColor color) Event Constructor -
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
-
ModAnnouncementEvent
@Internal public ModAnnouncementEvent(IRCMessageEvent messageEvent, EventChannel channel, EventUser announcer, String message, AnnouncementColor color) Event Constructor- Parameters:
messageEvent
- The raw message event.channel
- The channel that this event originates from.announcer
- The user that made the announcement.message
- The message being announced.color
- The color accent for the announcement.
-
-
Method Details
-
getColor
Deprecated.in favor ofgetAccentColor()
- Returns:
- the color accent for the announcement.
-
getMessageEvent
The raw message event. -
getAnnouncer
The user that made the announcement. -
getMessage
The message being announced. -
getAccentColor
The color accent for the announcement. -
toString
- Overrides:
toString
in classAbstractChannelEvent
-
equals
- Overrides:
equals
in classAbstractChannelEvent
-
canEqual
- Overrides:
canEqual
in classAbstractChannelEvent
-
hashCode
public int hashCode()- Overrides:
hashCode
in classAbstractChannelEvent
-
getAccentColor()