TencentGuildBotManagerConfiguration

TencentGuildBotManager 使用的配置类描述。

Functions

Link copied to clipboard
abstract fun botConfigure(configure: TencentGuildBotConfiguration.(appId: String, appKey: String, token: String) -> Unit)

对所有bot的配置信息进行统一处理的函数。 使用当前函数会保留之前的配置。

Link copied to clipboard
abstract fun register(appId: String, appKey: String, token: String, botConfiguration: TencentGuildBotConfiguration.() -> Unit = {}, onBot: suspend (TencentGuildComponentBot) -> Unit)

提供 appIdappKeytoken配置信息 来预注册一个bot。

Properties

Link copied to clipboard
abstract var botConfigure: TencentGuildBotConfiguration.(appId: String, appKey: String, token: String) -> Unit

对所有bot的配置信息进行统一处理的函数。 如果直接对 botConfigure 进行赋值,则会覆盖之前的配置。

Link copied to clipboard

当前botManager使用的协程上下文。初始值为 ApplicationConfiguration 所提供的上下文。