hasNoCommands

A predicate to test whether a message contains any commands in its body. Use it as the initialFilter parameter in behaviour builder triggers. E.g.

onContentMessage(
initialFilter = CommonMessage<MessageContent>::hasNoCommands
) {
// the message contains no commands here
}

Return

true if this CommonMessage does not contain any commands. False otherwise.

See also