mirror of
https://github.com/mamoe/mirai.git
synced 2025-01-09 09:50:16 +08:00
Add interface NoLog
This commit is contained in:
parent
6504283d4d
commit
8180098a02
@ -12,7 +12,12 @@ package net.mamoe.mirai.data
|
|||||||
/**
|
/**
|
||||||
* 从服务器收到的包解析之后的结构化数据.
|
* 从服务器收到的包解析之后的结构化数据.
|
||||||
*/
|
*/
|
||||||
interface Packet
|
interface Packet {
|
||||||
|
/**
|
||||||
|
* 实现这个接口的包将不会被记录到日志中
|
||||||
|
*/
|
||||||
|
interface NoLog
|
||||||
|
}
|
||||||
|
|
||||||
object NoPacket : Packet {
|
object NoPacket : Packet {
|
||||||
override fun toString(): String {
|
override fun toString(): String {
|
||||||
|
Loading…
Reference in New Issue
Block a user