mirai-core / net.mamoe.mirai.event / MessageSubscribersBuilder / sentByFriend

sentByFriend

fun sentByFriend(onEvent: MessageListener<FriendMessage, R>): Ret
fun sentByFriend(): ListeningFilter<M, Ret, R, RR>

如果是好友发来的消息