Interface WhitelistMessageContext

All Superinterfaces:
MessageContext

public interface WhitelistMessageContext extends MessageContext
A change to the whitelist. Builds on MessageContext.
  • Method Details

    • builder

      static net.flectone.pulse.module.command.whitelist.model.WhitelistMessageContextImpl.WhitelistMessageContextImplBuilder builder()
      Starts building this context.
      Returns:
      a new builder
    • moderation

      @Nullable Moderation moderation()
      The whitelist entry, or null when the whitelist itself was toggled.
      Returns:
      the whitelist entry, or null when the whitelist itself was toggled
    • turnedOn

      boolean turnedOn()
      Whether the whitelist was switched on, rather than off.
      Returns:
      whether the whitelist was switched on, rather than off
    • withModeration

      WhitelistMessageContext withModeration(@Nullable Moderation moderation)
      Returns a copy carrying a different value.
      Parameters:
      moderation - the whitelist entry, or null when the whitelist itself was toggled
      Returns:
      the copy
    • withTurnedOn

      WhitelistMessageContext withTurnedOn(boolean turnedOn)
      Returns a copy carrying a different value.
      Parameters:
      turnedOn - whether the whitelist was switched on, rather than off
      Returns:
      the copy