Make removePrefix defaults true

This commit is contained in:
Him188 2019-11-16 13:17:01 +08:00
parent 558ece3ae2
commit 98e39ea463

View File

@ -127,7 +127,7 @@ class MessageSubscribersBuilder<T : MessagePacket<*>>(
*/
suspend fun startsWith(
prefix: String,
removePrefix: Boolean = false,
removePrefix: Boolean = true,
onEvent: @MessageDsl suspend T.(String) -> Unit
) =
content({ it.startsWith(prefix) }) {