From 4a8eeacb3d1562e709e7fc477bd960115fbf51f3 Mon Sep 17 00:00:00 2001 From: Chris Roberson Date: Thu, 5 Oct 2023 16:24:58 -0400 Subject: [PATCH] web-api: Remove warning from `chat.update` (#1674) --- packages/web-api/src/WebClient.spec.js | 1 - packages/web-api/src/WebClient.ts | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/packages/web-api/src/WebClient.spec.js b/packages/web-api/src/WebClient.spec.js index fc9a73b25..9eb148237 100644 --- a/packages/web-api/src/WebClient.spec.js +++ b/packages/web-api/src/WebClient.spec.js @@ -211,7 +211,6 @@ describe('WebClient', function () { { method: 'chat.postEphemeral', args: { channel: "C123", blocks: [] } }, { method: 'chat.postMessage', args: { channel: "C123", blocks: [] } }, { method: 'chat.scheduleMessage', args: { channel: "C123", post_at: "100000000", blocks: [] } }, - { method: 'chat.update', args: { channel: "C123", ts: "123.456", blocks: [] } }, ]; const warningTestPatterns = textWarningTestPatterns.concat(attachmentWarningTestPatterns); diff --git a/packages/web-api/src/WebClient.ts b/packages/web-api/src/WebClient.ts index 462146e20..d768521d7 100644 --- a/packages/web-api/src/WebClient.ts +++ b/packages/web-api/src/WebClient.ts @@ -824,7 +824,7 @@ function warnDeprecations(method: string, logger: Logger): void { * @param options arguments for the Web API method */ function warnIfFallbackIsMissing(method: string, logger: Logger, options?: WebAPICallOptions): void { - const targetMethods = ['chat.postEphemeral', 'chat.postMessage', 'chat.scheduleMessage', 'chat.update']; + const targetMethods = ['chat.postEphemeral', 'chat.postMessage', 'chat.scheduleMessage']; const isTargetMethod = targetMethods.includes(method); const hasAttachments = (args: WebAPICallOptions) => Array.isArray(args.attachments) && args.attachments.length;