diff --git a/mirai-core/src/commonMain/kotlin/net.mamoe.mirai/data/Packet.kt b/mirai-core/src/commonMain/kotlin/net.mamoe.mirai/data/Packet.kt index 859ea7264..32ebf3f08 100644 --- a/mirai-core/src/commonMain/kotlin/net.mamoe.mirai/data/Packet.kt +++ b/mirai-core/src/commonMain/kotlin/net.mamoe.mirai/data/Packet.kt @@ -12,9 +12,14 @@ package net.mamoe.mirai.data /** * 从服务器收到的包解析之后的结构化数据. */ -interface Packet +interface Packet { + /** + * 实现这个接口的包将不会被记录到日志中 + */ + interface NoLog +} -object NoPacket : Packet{ +object NoPacket : Packet { override fun toString(): String { return "NoPacket" }