Package com.github.twitch4j.chat.events
Klasse CommandEvent
java.lang.Object
com.github.philippheuer.events4j.core.domain.Event
com.github.twitch4j.chat.events.TwitchEvent
com.github.twitch4j.chat.events.CommandEvent
- Alle implementierten Schnittstellen:
com.github.philippheuer.events4j.api.domain.IEvent
This event gets called when a message is received in a channel.
-
Konstruktorübersicht
KonstruktorenKonstruktorBeschreibungCommandEvent(CommandSource source, String sourceId, EventUser user, String commandPrefix, String command, Set<CommandPermission> permissions) Event Constructor -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungprotected booleanbooleanCommandCommand PrefixPermissions of the userSource: channel / privateMessageSource Id: channelName or userNamegetUser()UserinthashCode()voidrespondToUser(String message) Respond to the command origin (channel or private)toString()Von Klasse geerbte Methoden com.github.twitch4j.chat.events.TwitchEvent
getTwitchChatVon Klasse geerbte Methoden com.github.philippheuer.events4j.core.domain.Event
getEventId, getFiredAt, getFiredAtInstant, getServiceMediator, setEventId, setFiredAt, setFiredAtInstant, setServiceMediator
-
Konstruktordetails
-
CommandEvent
public CommandEvent(CommandSource source, String sourceId, EventUser user, String commandPrefix, String command, Set<CommandPermission> permissions) Event Constructor- Parameter:
source- Source (used for response method)sourceId- Source Id (used for response method)user- The user who triggered the event.commandPrefix- The command prefix used.command- The plain command without prefix.permissions- The permissions of the triggering user.
-
-
Methodendetails
-
respondToUser
Respond to the command origin (channel or private)- Parameter:
message- Message
-
toString
- Setzt außer Kraft:
toStringin KlasseTwitchEvent
-
getSource
Source: channel / privateMessage -
getSourceId
Source Id: channelName or userName -
getUser
User -
getCommandPrefix
Command Prefix -
getCommand
Command -
getPermissions
Permissions of the user -
equals
- Setzt außer Kraft:
equalsin KlasseTwitchEvent
-
canEqual
- Setzt außer Kraft:
canEqualin KlasseTwitchEvent
-
hashCode
public int hashCode()- Setzt außer Kraft:
hashCodein KlasseTwitchEvent
-