From 5f53d7ecda31c8d8bf1f7b68fb1abc18f8a91f82 Mon Sep 17 00:00:00 2001 From: Chris Roberson Date: Thu, 5 Oct 2023 16:00:30 -0400 Subject: [PATCH 1/2] Remove warning from chat.update --- 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 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; From 8a32c6193a06b92d2183b7db92540376d61de3c3 Mon Sep 17 00:00:00 2001 From: Chris Roberson Date: Thu, 5 Oct 2023 16:20:49 -0400 Subject: [PATCH 2/2] Fix tests --- packages/web-api/src/WebClient.spec.js | 1 - 1 file changed, 1 deletion(-) 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);