contains

fun contains(substring: String, ignoreCase: Boolean = false): Boolean(source)

Checks if the message content contains the specified substring.

Return

true if the content contains the substring, false otherwise.

Parameters

substring

The substring to search for.

ignoreCase

Whether to ignore case when searching (default: false).