KookBotVerifyInfoConfiguration

data class KookBotVerifyInfoConfiguration(val clientId: String, val token: String, val config: KookBotVerifyInfoConfiguration.Config = Config.DEFAULT)

.bot 配置文件读取的配置信息实体, 用于接收从 BotVerifyInfo 中的序列化信息。

KookBotVerifyInfoConfiguration 中,clientIdtoken 为必选项, 存在于当前配置属性的最外层。除了必选项以外还存在部分可选项存在于 KookBotVerifyInfoConfiguration.Config 类型中, 作为 config 属性使用。

简化json e.g.

{
"component": "simbot.kook",
"clientId": "Your client ID",
"token": "Your ws token"
}

完整json e.g.

{
"component": "simbot.kook",
"clientId": "Your client ID",
"token": "Your ws token",
"config": {
"isCompress": true,
"syncPeriods": {
"guildSyncPeriod": 60000,
"memberSyncPeriods": 60000
}
}
}

Constructors

Link copied to clipboard

Types

Link copied to clipboard
data class Config(val isCompress: Boolean = true, val syncPeriods: KookComponentBotConfiguration.SyncPeriods = KookComponentBotConfiguration.SyncPeriods())

KookBotVerifyInfoConfiguration 中除了必须的bot信息以外的可选配置信息。

Properties

Link copied to clipboard

client id

Link copied to clipboard

额外的部分可选配置属性。

Link copied to clipboard

token