Klasse CommandEvent

Alle implementierten Schnittstellen:
com.github.philippheuer.events4j.api.domain.IEvent

public final class CommandEvent extends TwitchEvent
This event gets called when a message is received in a channel.
  • 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

      public void respondToUser(String message)
      Respond to the command origin (channel or private)
      Parameter:
      message - Message
    • toString

      public String toString()
      Setzt außer Kraft:
      toString in Klasse TwitchEvent
    • getSource

      public CommandSource getSource()
      Source: channel / privateMessage
    • getSourceId

      public String getSourceId()
      Source Id: channelName or userName
    • getUser

      public EventUser getUser()
      User
    • getCommandPrefix

      public String getCommandPrefix()
      Command Prefix
    • getCommand

      public String getCommand()
      Command
    • getPermissions

      public Set<CommandPermission> getPermissions()
      Permissions of the user
    • equals

      public boolean equals(Object o)
      Setzt außer Kraft:
      equals in Klasse TwitchEvent
    • canEqual

      protected boolean canEqual(Object other)
      Setzt außer Kraft:
      canEqual in Klasse TwitchEvent
    • hashCode

      public int hashCode()
      Setzt außer Kraft:
      hashCode in Klasse TwitchEvent