Class IrcChatReceiveEvent

java.lang.Object
me.hackware.api.event.Event
me.hackware.api.event.impl.IrcChatReceiveEvent

public class IrcChatReceiveEvent extends Event
Fired on the main thread when an IRC channel chat line or direct message arrives (including our own echoes).
  • Constructor Details

    • IrcChatReceiveEvent

      public IrcChatReceiveEvent(UUID senderUuid, @Nullable @Nullable String senderName, String text, boolean direct)
  • Method Details

    • getSenderUuid

      public UUID getSenderUuid()
      The sender's UUID, as authenticated by the relay's meta frame.
    • getSenderName

      @Nullable public @Nullable String getSenderName()
      The sender's tab-list name (null when the tab list doesn't know them).
    • getText

      public String getText()
      The message as plain text: section/ampersand codes stripped, trimmed, never blank.
    • isDirect

      public boolean isDirect()
      True for a direct message ("message" payload), false for channel "chat".