mirror of
https://github.com/mamoe/mirai.git
synced 2025-03-23 13:50:12 +08:00
Simplify expression
This commit is contained in:
parent
fb19c0af36
commit
7049cc4591
@ -479,16 +479,7 @@ internal abstract class QQAndroidBotBase constructor(
|
||||
|
||||
return group.sendMessage(
|
||||
RichMessage.longMessage(
|
||||
brief = message.joinToString(limit = 27) {
|
||||
when (it) {
|
||||
is PlainText -> it.stringValue
|
||||
is At -> it.display
|
||||
is AtAll -> it.display
|
||||
is Image -> "[图片]"
|
||||
is Face -> "[表情]"
|
||||
else -> ""
|
||||
}
|
||||
},
|
||||
brief = message.joinToString(limit = 27) { it.contentToString() },
|
||||
resId = resId,
|
||||
timeSeconds = time
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user