Commit 492918ff authored by Him188's avatar Him188

Make SKey packets internal

parent ad3306a7
......@@ -13,14 +13,18 @@ import net.mamoe.mirai.network.qqAccount
import net.mamoe.mirai.utils.io.*
import net.mamoe.mirai.withSession
fun BotSession.RequestSKeyPacket(): OutgoingPacket = RequestSKeyPacket(qqAccount, sessionKey)
internal fun BotSession.RequestSKeyPacket(): OutgoingPacket = RequestSKeyPacket(qqAccount, sessionKey)
inline class SKey(
val value: String
) : Packet
/**
* 请求 `SKey`
* SKey 用于 http api
*/
@AnnotatedId(KnownPacketId.S_KEY)
object RequestSKeyPacket : SessionPacketFactory<SKey>() {
internal object RequestSKeyPacket : SessionPacketFactory<SKey>() {
operator fun invoke(
bot: UInt,
sessionKey: SessionKey
......@@ -61,7 +65,3 @@ object RequestSKeyPacket : SessionPacketFactory<SKey>() {
}*/
}
}
\ No newline at end of file
inline class SKey(
val value: String
) : Packet
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment