Class DeleteMessageEvent
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.DeleteMessageEvent
- All Implemented Interfaces:
com.github.philippheuer.events4j.api.domain.IEvent
Fired when a single message was deleted over IRC by a moderator via
/delete <target-msg-id>
-
Constructor Summary
ConstructorDescriptionDeleteMessageEvent
(EventChannel channel, String userName, String msgId, String message, boolean wasActionMessage) -
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
-
DeleteMessageEvent
public DeleteMessageEvent(EventChannel channel, String userName, String msgId, String message, boolean wasActionMessage)
-
-
Method Details
-
getUserName
The login name of the user whose message was deleted. -
getMsgId
UUID of the message that was deleted. -
getMessage
The message that was deleted. -
wasActionMessage
public boolean wasActionMessage()Whether the deleted message was an action event (/me). -
toString
- Overrides:
toString
in classAbstractChannelEvent
-
equals
- Overrides:
equals
in classAbstractChannelEvent
-
canEqual
- Overrides:
canEqual
in classAbstractChannelEvent
-
hashCode
public int hashCode()- Overrides:
hashCode
in classAbstractChannelEvent
-