From 765743e43737d09c6b31ac867f774b977fbfff33 Mon Sep 17 00:00:00 2001 From: Kazuhiro Sera Date: Sat, 15 Jul 2023 07:52:55 +0900 Subject: [PATCH] Mark stars.* API methods as deprecated (#1632) --- packages/web-api/src/WebClient.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/web-api/src/WebClient.ts b/packages/web-api/src/WebClient.ts index a054de227..924d9a927 100644 --- a/packages/web-api/src/WebClient.ts +++ b/packages/web-api/src/WebClient.ts @@ -820,7 +820,7 @@ function parseRetryHeaders(response: AxiosResponse): number | undefined { function warnDeprecations(method: string, logger: Logger): void { const deprecatedConversationsMethods = ['channels.', 'groups.', 'im.', 'mpim.']; - const deprecatedMethods = ['admin.conversations.whitelist.']; + const deprecatedMethods = ['admin.conversations.whitelist.', 'stars.']; const isDeprecatedConversations = deprecatedConversationsMethods.some((depMethod) => { const re = new RegExp(`^${depMethod}`);