mirror of
https://github.com/mamoe/mirai.git
synced 2025-01-23 14:20:24 +08:00
Make sendPacket (internal) inline
This commit is contained in:
parent
2fcb7b88f4
commit
89b39de1ff
@ -225,7 +225,7 @@ internal abstract class TIMPCBotBase constructor(
|
||||
|
||||
internal inline fun <R> inline(block: () -> R): R = block()
|
||||
|
||||
internal suspend fun TIMPCBot.sendPacket(toSend: OutgoingPacket) = this.network.socket.sendPacket(toSend)
|
||||
internal suspend inline fun TIMPCBot.sendPacket(toSend: OutgoingPacket) = this.network.socket.sendPacket(toSend)
|
||||
|
||||
/**
|
||||
* 以 [Bot] 作为接收器 (receiver) 并调用 [block], 返回 [block] 的返回值.
|
||||
|
Loading…
Reference in New Issue
Block a user