Interface TwitchMessageContext

All Superinterfaces:
MessageContext, StringMessageContext

public interface TwitchMessageContext extends StringMessageContext
A message that came from Twitch chat. Builds on StringMessageContext.
  • Method Details

    • builder

      static net.flectone.pulse.module.integration.twitch.model.TwitchMessageContextImpl.TwitchMessageContextImplBuilder builder()
      Starts building this context.
      Returns:
      a new builder
    • nickname

      @NonNull String nickname()
      The author's Twitch name.
      Returns:
      the author's Twitch name
    • channel

      @NonNull String channel()
      The channel the message was posted in.
      Returns:
      the channel the message was posted in
    • reply

      @Nullable Pair<String,String> reply()
      The author and text of the replied-to message, or null.
      Returns:
      the author and text of the replied-to message, or null
    • withNickname

      TwitchMessageContext withNickname(@NonNull String nickname)
      Returns a copy carrying a different value.
      Parameters:
      nickname - the author's Twitch name
      Returns:
      the copy
    • withChannel

      TwitchMessageContext withChannel(@NonNull String channel)
      Returns a copy carrying a different value.
      Parameters:
      channel - the channel the message was posted in
      Returns:
      the copy
    • withReply

      TwitchMessageContext withReply(@Nullable Pair<String,String> reply)
      Returns a copy carrying a different value.
      Parameters:
      reply - the author and text of the replied-to message, or null
      Returns:
      the copy