mirror of
https://github.com/mamoe/mirai.git
synced 2025-03-13 06:30:13 +08:00
parent
ad41b7a0d0
commit
8a6f306cdb
@ -287,7 +287,7 @@ open class MessageSubscribersBuilder<M : MessageEvent, out Ret, R : RR, RR>(
|
||||
@MessageDsl
|
||||
fun atAll(): ListeningFilter = content { message.firstIsInstanceOrNull<AtAll>() != null }
|
||||
|
||||
/** [消息内容][Message.contentToString]包含 [AtAll] */
|
||||
/** [消息内容][Message.contentToString]包含目标为 [target] 的 [At] */
|
||||
@MessageDsl
|
||||
fun at(target: Long): ListeningFilter = content { message.firstIsInstanceOrNull<At>()?.target == target }
|
||||
|
||||
@ -447,4 +447,4 @@ open class MessageSubscribersBuilder<M : MessageEvent, out Ret, R : RR, RR>(
|
||||
@Retention(AnnotationRetention.SOURCE)
|
||||
@Target(AnnotationTarget.FUNCTION, AnnotationTarget.CLASS, AnnotationTarget.TYPE)
|
||||
@DslMarker
|
||||
annotation class MessageDsl
|
||||
annotation class MessageDsl
|
||||
|
Loading…
Reference in New Issue
Block a user