KookBotVerifyInfoConfiguration
data class KookBotVerifyInfoConfiguration(val clientId: String, val token: String, val config: KookBotVerifyInfoConfiguration.Config = Config.DEFAULT)
.bot
配置文件读取的配置信息实体, 用于接收从 BotVerifyInfo 中的序列化信息。
在 KookBotVerifyInfoConfiguration 中,clientId 和 token 为必选项, 存在于当前配置属性的最外层。除了必选项以外还存在部分可选项存在于 KookBotVerifyInfoConfiguration.Config 类型中, 作为 config 属性使用。
简化json e.g.
{
"component": "simbot.kook",
"clientId": "Your client ID",
"token": "Your ws token"
}
Content copied to clipboard
完整json e.g.
{
"component": "simbot.kook",
"clientId": "Your client ID",
"token": "Your ws token",
"config": {
"isCompress": true,
"syncPeriods": {
"guildSyncPeriod": 60000,
"memberSyncPeriods": 60000
}
}
}
Content copied to clipboard
Constructors
Link copied to clipboard
fun KookBotVerifyInfoConfiguration(clientId: String, token: String, config: KookBotVerifyInfoConfiguration.Config = Config.DEFAULT)
Types
Link copied to clipboard
data class Config(val isCompress: Boolean = true, val syncPeriods: KookComponentBotConfiguration.SyncPeriods = KookComponentBotConfiguration.SyncPeriods())
在 KookBotVerifyInfoConfiguration 中除了必须的bot信息以外的可选配置信息。