mirror of
https://github.com/mamoe/mirai.git
synced 2025-01-24 06:42:38 +08:00
Make SKey packets internal
This commit is contained in:
parent
ad3306a738
commit
492918ff63
@ -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
|
||||
@ -60,8 +64,4 @@ object RequestSKeyPacket : SessionPacketFactory<SKey>() {
|
||||
}
|
||||
}*/
|
||||
}
|
||||
}
|
||||
|
||||
inline class SKey(
|
||||
val value: String
|
||||
) : Packet
|
||||
}
|
Loading…
Reference in New Issue
Block a user