mirror of
https://github.com/mamoe/mirai.git
synced 2025-01-24 06:50:08 +08:00
Enhance performance
This commit is contained in:
parent
4348c3516e
commit
c980bf1ceb
@ -50,7 +50,7 @@ abstract class MessagePacketBase<TSender : QQ, TSubject : Contact>(_bot: Bot) :
|
|||||||
suspend inline fun reply(message: MessageChain) = subject.sendMessage(message)
|
suspend inline fun reply(message: MessageChain) = subject.sendMessage(message)
|
||||||
|
|
||||||
suspend inline fun reply(message: Message) = subject.sendMessage(message.toChain())
|
suspend inline fun reply(message: Message) = subject.sendMessage(message.toChain())
|
||||||
suspend inline fun reply(plain: String) = subject.sendMessage(plain.toMessage())
|
suspend inline fun reply(plain: String) = subject.sendMessage(plain.singleChain())
|
||||||
|
|
||||||
@JvmName("reply1")
|
@JvmName("reply1")
|
||||||
suspend inline fun String.reply() = reply(this)
|
suspend inline fun String.reply() = reply(this)
|
||||||
|
Loading…
Reference in New Issue
Block a user