registerWs

open fun registerWs(clientId: String, token: String, configuration: KookBotConfiguration): KookBot(source)

通过 clientIdtokenconfiguration 注册 ws bot。

Throws

已经存在注册的相同 clientId 的 bot 时


open fun registerWs(clientId: String, token: String, block: KookBotConfiguration.() -> Unit = {}): KookBot(source)

通过 clientIdtokenblock 注册 ws bot。

Throws

已经存在注册的相同 clientId 的 bot 时