Class PrivateMessageEvent
java.lang.Object
com.github.philippheuer.events4j.core.domain.Event
com.github.twitch4j.common.events.TwitchEvent
com.github.twitch4j.common.events.user.PrivateMessageEvent
- All Implemented Interfaces:
com.github.philippheuer.events4j.api.domain.IEvent
This event gets called when the bot gets a private message.
-
Constructor Summary
ConstructorDescriptionPrivateMessageEvent
(EventUser user, String message, Set<CommandPermission> permissions) Event Constructor -
Method Summary
Methods inherited from class com.github.philippheuer.events4j.core.domain.Event
getEventId, getFiredAt, getFiredAtInstant, getServiceMediator, setEventId, setFiredAt, setFiredAtInstant, setServiceMediator
-
Constructor Details
-
PrivateMessageEvent
Event Constructor- Parameters:
user
- The user who triggered the event.message
- The plain text of the message.permissions
- The permissions of the triggering user.
-
-
Method Details
-
toString
- Overrides:
toString
in classTwitchEvent
-
getUser
User -
getMessage
Message -
getPermissions
Permissions of the user -
equals
- Overrides:
equals
in classTwitchEvent
-
canEqual
- Overrides:
canEqual
in classTwitchEvent
-
hashCode
public int hashCode()- Overrides:
hashCode
in classTwitchEvent
-