From 47f24ec0f63d52568b3ee57f5231eab0ae10a36b Mon Sep 17 00:00:00 2001 From: Shay DeWael Date: Wed, 22 Apr 2020 08:53:53 -0700 Subject: [PATCH] Update broken respond example `respond()` doesn't accept string. This example is broken --- docs/_basic/responding_actions.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/_basic/responding_actions.md b/docs/_basic/responding_actions.md index 9fcb1f65d..208346427 100644 --- a/docs/_basic/responding_actions.md +++ b/docs/_basic/responding_actions.md @@ -33,7 +33,7 @@ Since `respond()` is a utility for calling the `response_url`, it behaves in the // Listens to actions triggered with action_id of “user_select” app.action('user_choice', async ({ action, ack, respond }) => { await ack(); - await respond(`You selected <@${action.selected_user}>`); + await respond({ text: `You selected <@${action.selected_user}>` }); }); ```