fun getChannelsList()

in src/main/kotlin/jetbrains/buildServer/notification/slackNotifier/slack/AggregatedSlackApi.kt [62:70]


    fun getChannelsList(token: String): List<Channel> {
        val res = myChannelsCache.getAsync(token, readTimeoutMs) {
            getList { cursor ->
                slackApi.conversationsList(token, cursor)
            }
        }
        if (!res.ok) throw SlackResponseError(res.error)
        return res.data
    }