mirror of
https://github.com/mamoe/mirai.git
synced 2025-01-23 14:20:24 +08:00
Enhance performance
This commit is contained in:
parent
1dc0255b49
commit
77dce11e96
@ -127,8 +127,8 @@ class MessageSubscribersBuilder<T : MessagePacket<*, *>>(
|
||||
* 无任何触发条件.
|
||||
*/
|
||||
@MessageDsl
|
||||
inline fun always(crossinline onEvent: @MessageDsl suspend T.(String) -> Unit): Listener<T> {
|
||||
return content({ true }, onEvent)
|
||||
fun always(onEvent: @MessageDsl suspend T.(String) -> Unit): Listener<T> {
|
||||
return subscriber(onEvent)
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user