MessageFilter

fun interface MessageFilter(source)

A predicate for filtering messages in FilterMessagesPreProcessor.

This is a functional interface so it can be used as a SAM type from Java:

config.filterMessages(message -> message.getContent().length() <= 100);

Functions

Link copied to clipboard
abstract fun test(message: Message): Boolean

Tests whether the given message should be kept.