Commit 98e39ea4 authored by Him188's avatar Him188

Make removePrefix defaults true

parent 558ece3a
...@@ -127,7 +127,7 @@ class MessageSubscribersBuilder<T : MessagePacket<*>>( ...@@ -127,7 +127,7 @@ class MessageSubscribersBuilder<T : MessagePacket<*>>(
*/ */
suspend fun startsWith( suspend fun startsWith(
prefix: String, prefix: String,
removePrefix: Boolean = false, removePrefix: Boolean = true,
onEvent: @MessageDsl suspend T.(String) -> Unit onEvent: @MessageDsl suspend T.(String) -> Unit
) = ) =
content({ it.startsWith(prefix) }) { content({ it.startsWith(prefix) }) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment