diff --git a/mirai-core/src/commonMain/kotlin/net.mamoe.mirai/network/protocol/tim/packet/OutgoingPacket.kt b/mirai-core/src/commonMain/kotlin/net.mamoe.mirai/network/protocol/tim/packet/OutgoingPacket.kt index 0fed254bb..0b55041ad 100644 --- a/mirai-core/src/commonMain/kotlin/net.mamoe.mirai/network/protocol/tim/packet/OutgoingPacket.kt +++ b/mirai-core/src/commonMain/kotlin/net.mamoe.mirai/network/protocol/tim/packet/OutgoingPacket.kt @@ -24,7 +24,7 @@ internal class OutgoingPacket( val sequenceId: UShort, internal val delegate: ByteReadPacket ) : Packet { - private val name: String by lazy { + val name: String by lazy { name ?: packetId.toString() } }