hasCommands

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>::hasCommands
) {
// the message contains at least one command here
}

Return

true if this CommonMessage contains any commands. False otherwise.

See also