mirror of
https://github.com/mamoe/mirai.git
synced 2025-01-23 14:20:24 +08:00
Disable GroupFileUploadEventFactory
This commit is contained in:
parent
50ae6f2680
commit
bf8e65e98b
@ -6,6 +6,7 @@ import kotlinx.io.core.ByteReadPacket
|
||||
import kotlinx.io.core.discardExact
|
||||
import net.mamoe.mirai.Bot
|
||||
import net.mamoe.mirai.network.protocol.tim.packet.PacketVersion
|
||||
import net.mamoe.mirai.utils.io.debugPrint
|
||||
import net.mamoe.mirai.utils.io.readString
|
||||
|
||||
|
||||
@ -14,6 +15,8 @@ data class GroupFileUploadPacket(inline val xmlMessage: String) : EventPacket
|
||||
@PacketVersion(date = "2019.7.1", timVersion = "2.3.2 (21173)")
|
||||
object GroupFileUploadEventFactory : KnownEventParserAndHandler<GroupFileUploadPacket>(0x002Du) {
|
||||
override suspend fun ByteReadPacket.parse(bot: Bot, identity: EventPacketIdentity): GroupFileUploadPacket {
|
||||
this.debugPrint("GroupFileUploadPacket")
|
||||
return GroupFileUploadPacket("")
|
||||
discardExact(60)
|
||||
val size = readShort().toInt()
|
||||
discardExact(3)
|
||||
|
Loading…
Reference in New Issue
Block a user