Interface TwitchMessageContext
- All Superinterfaces:
MessageContext, StringMessageContext
A message that came from Twitch chat.
Builds on
StringMessageContext.-
Nested Class Summary
Nested classes/interfaces inherited from interface MessageContext
MessageContext.CacheKey -
Method Summary
Modifier and TypeMethodDescriptionstatic net.flectone.pulse.module.integration.twitch.model.TwitchMessageContextImpl.TwitchMessageContextImplBuilderbuilder()Starts building this context.@NonNull Stringchannel()The channel the message was posted in.@NonNull Stringnickname()The author's Twitch name.reply()The author and text of the replied-to message, or null.withChannel(@NonNull String channel) Returns a copy carrying a different value.withNickname(@NonNull String nickname) Returns a copy carrying a different value.Returns a copy carrying a different value.Methods inherited from interface MessageContext
addFlag, addFlags, addTagResolver, addTagResolvers, base, createCacheKey, flags, isFlag, message, receiver, sender, tagResolver, toBuilder, uuid, withBase, withFlags, withMessage, withReceiver, withSender, withTagResolver, withUuidMethods inherited from interface StringMessageContext
string, withString
-
Method Details
-
builder
static net.flectone.pulse.module.integration.twitch.model.TwitchMessageContextImpl.TwitchMessageContextImplBuilder builder()Starts building this context.- Returns:
- a new builder
-
nickname
-
channel
@NonNull String channel()The channel the message was posted in.- Returns:
- the channel the message was posted in
-
reply
-
withNickname
Returns a copy carrying a different value.- Parameters:
nickname- the author's Twitch name- Returns:
- the copy
-
withChannel
Returns a copy carrying a different value.- Parameters:
channel- the channel the message was posted in- Returns:
- the copy
-
withReply
Returns a copy carrying a different value.- Parameters:
reply- the author and text of the replied-to message, or null- Returns:
- the copy
-