mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-09 16:14:31 +00:00
fix: reduce Slack WebClient retries
This commit is contained in:
@@ -1,4 +1,6 @@
|
||||
import { WebClient } from "@slack/web-api";
|
||||
import type { WebClient } from "@slack/web-api";
|
||||
|
||||
import { createSlackWebClient } from "./client.js";
|
||||
|
||||
export type SlackChannelLookup = {
|
||||
id: string;
|
||||
@@ -84,7 +86,7 @@ export async function resolveSlackChannelAllowlist(params: {
|
||||
entries: string[];
|
||||
client?: WebClient;
|
||||
}): Promise<SlackChannelResolution[]> {
|
||||
const client = params.client ?? new WebClient(params.token);
|
||||
const client = params.client ?? createSlackWebClient(params.token);
|
||||
const channels = await listSlackChannels(client);
|
||||
const results: SlackChannelResolution[] = [];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user