registerWs
open fun registerWs(clientId: String, token: String, configuration: KookBotConfiguration): KookBot(source)
通过 clientId、 token 和 configuration 注册 ws bot。
Throws
ConflictBotException
已经存在注册的相同 clientId
的 bot 时
open fun registerWs(clientId: String, token: String, block: KookBotConfiguration.() -> Unit = {}): KookBot(source)
通过 clientId、 token 和 block 注册 ws bot。
Throws
ConflictBotException
已经存在注册的相同 clientId
的 bot 时