Skip to content

Commit fb46c9b

Browse files
committed
learn/custom-interactions: add note about unique custom ID requirement
Signed-off-by: Luca Zeuch <[email protected]>
1 parent 8cd8708 commit fb46c9b

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

content/learn/advanced/custom-interactions/parsing-an-interaction.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,13 @@ command on `uno-` as custom ID regex.
4646
{{ end }}
4747
```
4848

49+
{{< callout context="caution" title="Warning: Unique Custom ID" icon="outline/alert-triangle" >}}
50+
51+
Multiple buttons and menus cannot have the same custom ID in one message. It is a good idea to have a common prefix and
52+
then encode the action the menu or button carries in the custom ID.
53+
54+
{{< /callout >}}
55+
4956
## Parsing Select Menus
5057

5158
Select menus provide us with a `.Values` slice, which we can use to parse the values selected by the user. This slice is

0 commit comments

Comments
 (0)