Skip to content

Commit 45d723a

Browse files
authored
Fix parameter name in cbutton example (#91)
Updated the parameter name from 'custom-id' to 'custom_id' in the cbutton function. Signed-off-by: Luca Zeuch <[email protected]>
1 parent 02c9ad8 commit 45d723a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

content/learn/advanced/custom-interactions/creating-interactive-elements.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ also have to attach it to a message. We do that by calling the
1818
Finally, we send the message.
1919

2020
```yag
21-
{{ $button := cbutton "label" "My Cool Button" "custom-id" "buttons-duck" }}
21+
{{ $button := cbutton "label" "My Cool Button" "custom_id" "buttons-duck" }}
2222
{{ $m := complexMessage "buttons" $button }}
2323
{{ sendMessage nil $m }}
2424
```

0 commit comments

Comments
 (0)