diff --git a/mirai-core/src/commonMain/kotlin/net.mamoe.mirai/event/events/GroupEvents.kt b/mirai-core/src/commonMain/kotlin/net.mamoe.mirai/event/events/GroupEvents.kt index a98449a38..9f0d741b6 100644 --- a/mirai-core/src/commonMain/kotlin/net.mamoe.mirai/event/events/GroupEvents.kt +++ b/mirai-core/src/commonMain/kotlin/net.mamoe.mirai/event/events/GroupEvents.kt @@ -5,7 +5,7 @@ import net.mamoe.mirai.contact.Group import net.mamoe.mirai.contact.QQ import net.mamoe.mirai.message.Message import net.mamoe.mirai.message.MessageChain -import net.mamoe.mirai.network.protocol.tim.packet.SenderPermission +import net.mamoe.mirai.network.protocol.tim.packet.event.SenderPermission abstract class GroupEvent(bot: Bot, val group: Group) : BotEvent(bot) diff --git a/mirai-core/src/commonMain/kotlin/net.mamoe.mirai/network/protocol/tim/handler/EventPacketHandler.kt b/mirai-core/src/commonMain/kotlin/net.mamoe.mirai/network/protocol/tim/handler/EventPacketHandler.kt index 9ba99e52f..71a1ebf4b 100644 --- a/mirai-core/src/commonMain/kotlin/net.mamoe.mirai/network/protocol/tim/handler/EventPacketHandler.kt +++ b/mirai-core/src/commonMain/kotlin/net.mamoe.mirai/network/protocol/tim/handler/EventPacketHandler.kt @@ -17,6 +17,7 @@ import net.mamoe.mirai.network.protocol.tim.packet.action.ClientSendFriendMessag import net.mamoe.mirai.network.protocol.tim.packet.action.ClientSendGroupMessagePacket import net.mamoe.mirai.network.protocol.tim.packet.action.ServerSendFriendMessageResponsePacket import net.mamoe.mirai.network.protocol.tim.packet.action.ServerSendGroupMessageResponsePacket +import net.mamoe.mirai.network.protocol.tim.packet.event.* import net.mamoe.mirai.utils.MiraiLogger /** diff --git a/mirai-core/src/commonMain/kotlin/net.mamoe.mirai/network/protocol/tim/packet/event/MessageEventPackets.kt b/mirai-core/src/commonMain/kotlin/net.mamoe.mirai/network/protocol/tim/packet/event/MessageEventPackets.kt index 8057b6e93..85926091d 100644 --- a/mirai-core/src/commonMain/kotlin/net.mamoe.mirai/network/protocol/tim/packet/event/MessageEventPackets.kt +++ b/mirai-core/src/commonMain/kotlin/net.mamoe.mirai/network/protocol/tim/packet/event/MessageEventPackets.kt @@ -57,7 +57,7 @@ class ServerGroupMessageEventPacket(input: ByteReadPacket, eventIdentity: EventP senderPermission = when (val value0x03 = tlv.getValue(0x03)[0].toUInt()) { 0x04u -> SenderPermission.OWNER - 0x03u -> { + 0x02u -> { when (val value0x04 = tlv.getValue(0x04)[3].toUInt()) { 0x08u -> SenderPermission.OPERATOR 0x10u -> SenderPermission.MEMBER