Skip to content

Commit

Permalink
Improve example
Browse files Browse the repository at this point in the history
  • Loading branch information
WilliamBergamin committed Aug 14, 2024
1 parent 56ab543 commit 44da1d1
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions docs/content/basic/custom-steps.md
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ 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('sample_custom_step', async ({ ack, client, inputs, fail, logger }) => {
app.function('custom_step_button', async ({ ack, client, inputs, fail, logger }) => {
try {
await ack();
const { user_id } = inputs;
Expand Down Expand Up @@ -141,9 +141,9 @@ definition
```json
...
"functions": {
"sample_custom_step": {
"title": "Sample custom step",
"description": "Run a sample custom step",
"custom_step_button": {
"title": "Custom step with a button",
"description": "Custom step that waits for a button click",
"input_parameters": {
"user_id": {
"type": "slack#/types/user_id",
Expand Down

0 comments on commit 44da1d1

Please sign in to comment.