Interface ModerationMessageContext
- All Superinterfaces:
MessageContext
- All Known Subinterfaces:
MaintenanceMessageContext
A message context that also carries a punishment issued by FlectonePulse.
-
Nested Class Summary
Nested classes/interfaces inherited from interface MessageContext
MessageContext.CacheKey -
Method Summary
Modifier and TypeMethodDescriptionstatic net.flectone.pulse.model.event.message.context.ModerationMessageContextImpl.ModerationMessageContextImplBuilderbuilder()Starts building this context.@NonNull ModerationThe extra value carried alongside the message.withModeration(@NonNull Moderation moderation) 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, withUuid
-
Method Details
-
builder
static net.flectone.pulse.model.event.message.context.ModerationMessageContextImpl.ModerationMessageContextImplBuilder builder()Starts building this context.- Returns:
- a new builder
-
moderation
@NonNull Moderation moderation()The extra value carried alongside the message.- Returns:
- the moderation
-
withModeration
Returns a copy carrying a different value.- Parameters:
moderation- the new value- Returns:
- the copy
-