tencentGuildBots

inline fun ApplicationBuilder<*>.tencentGuildBots(crossinline block: suspend TencentGuildBotManager.(BotRegistrar) -> Unit)

ApplicationBuilder.bots 作用域中寻找并使用 TencentGuildBotManager

simpleApplication {
tencentGuildBots {
val bot = register("app id", "app key", "token") {
// config
}
bot.start()
}
}

如果当前环境中不存在 TencentGuildBotManager, 则会抛出 NoSuchElementException. 此异常不会准备阶段被抛出,而是在真正执行构建时。

Throws