botConfigure
abstract fun botConfigure(configure: TencentGuildBotConfiguration.(appId: String, appKey: String, token: String) -> Unit)
对所有bot的配置信息进行统一处理的函数。 使用当前函数会保留之前的配置。
如果想直接覆盖配置并抛弃之前的配置,考虑使用同名的属性 botConfigure.
e.g.
botConfigure { appId, appKey, token -> /* ... */}
Content copied to clipboard
abstract var botConfigure: TencentGuildBotConfiguration.(appId: String, appKey: String, token: String) -> Unit
对所有bot的配置信息进行统一处理的函数。 如果直接对 botConfigure 进行赋值,则会覆盖之前的配置。
如果想要以_追加_的形式进行配置,考虑使用同名的函数 botConfigure.
e.g.
botConfigure = { appId, appKey, token -> /* ... */}
Content copied to clipboard