Skip to content

Commit

Permalink
Remove old docs
Browse files Browse the repository at this point in the history
  • Loading branch information
WilliamBergamin committed Aug 13, 2024
1 parent e3ac1eb commit 717028f
Show file tree
Hide file tree
Showing 6 changed files with 3 additions and 110 deletions.
4 changes: 3 additions & 1 deletion docs/content/basic/custom-steps.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ lang: en
slug: /concepts/custom-steps
---

Your app can use the `function()` method to listen to incoming [custom step requests](https://api.slack.com/automation/functions/custom-bolt). The method requires a step `callback_id` of type string. This `callback_id` must also be defined in your [Function](https://api.slack.com/concepts/manifests#functions) definition. Custom steps must be finalized using the `complete()` or `fail()` listener arguments to notify Slack that your app has processed the request.
Your app can use the `function()` method to listen to incoming [custom step requests](https://api.slack.com/automation/functions/custom-bolt). Custom steps are used in Workflow Builder to build workflows. The method requires a step `callback_id` of type string. This `callback_id` must also be defined in your [Function](https://api.slack.com/concepts/manifests#functions) definition. Custom steps must be finalized using the `complete()` or `fail()` listener arguments to notify Slack that your app has processed the request.

* `complete()` requires one argument: an `outputs` object. It completes your custom step **successfully** and provides an object containing the outputs of your custom step as per its definition.
* `fail()` requires **one** argument: `error` of type string. It completes your custom step **unsuccessfully** and provides a message containing information regarding why your custom step failed.
Expand Down Expand Up @@ -98,4 +98,6 @@ app.action('sample_button', async ({ ack, body, client, complete, fail, logger }
});
```

Learn more about responding to interactivity, see the [Slack API documentation](https://api.slack.com/automation/functions/custom-bolt#interactivity).

</details>
16 changes: 0 additions & 16 deletions docs/content/custom-functions/creating-custom-functions.md

This file was deleted.

39 changes: 0 additions & 39 deletions docs/content/custom-functions/defining-custom-functions.md

This file was deleted.

25 changes: 0 additions & 25 deletions docs/content/custom-functions/listening-to-custom-functions.md

This file was deleted.

19 changes: 0 additions & 19 deletions docs/content/custom-functions/responding-to-interactivity.md

This file was deleted.

10 changes: 0 additions & 10 deletions docs/sidebars.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,16 +67,6 @@ const sidebars = {
'deployments/heroku'
],
},
{
type: 'category',
label: 'Custom functions (Beta)',
items: [
'custom-functions/creating-custom-functions',
'custom-functions/defining-custom-functions',
'custom-functions/listening-to-custom-functions',
'custom-functions/responding-to-interactivity',
],
},
{
type: 'category',
label: 'Workflow steps (Deprecated)',
Expand Down

0 comments on commit 717028f

Please sign in to comment.