From 34fefa257629302a1d776924a11efd993cdec085 Mon Sep 17 00:00:00 2001 From: William Bergamin Date: Wed, 14 Aug 2024 15:22:01 -0400 Subject: [PATCH] Remove ack from example --- docs/content/basic/custom-steps.md | 10 ++++------ .../current/basic/custom-steps.md | 10 ++++------ 2 files changed, 8 insertions(+), 12 deletions(-) diff --git a/docs/content/basic/custom-steps.md b/docs/content/basic/custom-steps.md index fdc0696e8..495745551 100644 --- a/docs/content/basic/custom-steps.md +++ b/docs/content/basic/custom-steps.md @@ -13,9 +13,8 @@ You can reference your custom step's inputs using the `inputs` listener argument ```js // This sample custom step formats an input and outputs it -app.function('sample_custom_step', async ({ ack, inputs, complete, fail, logger }) => { +app.function('sample_custom_step', async ({ inputs, complete, fail, logger }) => { try { - await ack(); const { message } = inputs; await complete({ @@ -32,7 +31,7 @@ app.function('sample_custom_step', async ({ ack, inputs, complete, fail, logger
-definition +Example app manifest definition ```json @@ -79,9 +78,8 @@ You’ll notice in all interactivity handler examples, `ack()` is used. It is re ```js /** This sample custom step posts a message with a button */ -app.function('custom_step_button', async ({ ack, client, inputs, fail, logger }) => { +app.function('custom_step_button', async ({ client, inputs, fail, logger }) => { try { - await ack(); const { user_id } = inputs; await client.chat.postMessage({ @@ -135,7 +133,7 @@ app.action('sample_button', async ({ ack, body, client, complete, fail, logger }
-definition +Example app manifest definition ```json diff --git a/docs/i18n/ja-jp/docusaurus-plugin-content-docs/current/basic/custom-steps.md b/docs/i18n/ja-jp/docusaurus-plugin-content-docs/current/basic/custom-steps.md index aa697c3d8..aa4f344cc 100644 --- a/docs/i18n/ja-jp/docusaurus-plugin-content-docs/current/basic/custom-steps.md +++ b/docs/i18n/ja-jp/docusaurus-plugin-content-docs/current/basic/custom-steps.md @@ -13,9 +13,8 @@ You can reference your custom step's inputs using the `inputs` listener argument ```js // This sample custom step formats an input and outputs it -app.function('sample_custom_step', async ({ ack, inputs, complete, fail, logger }) => { +app.function('sample_custom_step', async ({ inputs, complete, fail, logger }) => { try { - await ack(); const { message } = inputs; await complete({ @@ -32,7 +31,7 @@ app.function('sample_custom_step', async ({ ack, inputs, complete, fail, logger
-definition +Example app manifest definition ```json @@ -79,9 +78,8 @@ You’ll notice in all interactivity handler examples, `ack()` is used. It is re ```js /** This sample custom step posts a message with a button */ -app.function('custom_step_button', async ({ ack, client, inputs, fail, logger }) => { +app.function('custom_step_button', async ({ client, inputs, fail, logger }) => { try { - await ack(); const { user_id } = inputs; await client.chat.postMessage({ @@ -135,7 +133,7 @@ app.action('sample_button', async ({ ack, body, client, complete, fail, logger }
-definition +Example app manifest definition ```json