Skip to content

Commit cca57f0

Browse files
committed
learn/interactions: fix some code, use official instance for imgs
Signed-off-by: Luca Zeuch <[email protected]>
1 parent 77f1f2d commit cca57f0

File tree

5 files changed

+5
-4
lines changed

5 files changed

+5
-4
lines changed
-55.3 KB
Loading

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

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -111,9 +111,10 @@ want to include in the menu. You do this by using the `channel_types` field, whi
111111
"type" "channel"
112112
"placeholder" "Choose channels which are secretly duck hideouts"
113113
"custom_id" "menus-duck-channels"
114-
"default_values" ( cslice
115-
( sdict "type" "channel" "id" $issuesChannel )
116-
( sdict "type" "channel" "id" $updatesChannel ))
114+
"default_values" (cslice
115+
(sdict "type" "channel" "id" $issuesChannel)
116+
(sdict "type" "channel" "id" $updatesChannel)
117+
)
117118
"max_values" 3
118119
"channel_types" (cslice 5 15) }}
119120
@@ -241,7 +242,7 @@ we are looking for. The solution is to tell YAGPDB precisely how the rows look l
241242
{{ $row2 := cslice (cbutton "emoji" $blankEmoji "custom_id" "tictactoe-button-4" "style" "secondary") (cbutton "emoji" $blankEmoji "custom_id" "tictactoe-button-5" "style" "secondary") (cbutton "emoji" $blankEmoji "custom_id" "tictactoe-button-6" "style" "secondary") }}
242243
{{ $row3 := cslice (cbutton "emoji" $blankEmoji "custom_id" "tictactoe-button-7" "style" "secondary") (cbutton "emoji" $blankEmoji "custom_id" "tictactoe-button-8" "style" "secondary") (cbutton "emoji" $blankEmoji "custom_id" "tictactoe-button-9" "style" "secondary") }}
243244
244-
{{ $message := complexMessage "buttons" $row1 "buttons" $row2 "buttons" $row3 "menus" }}
245+
{{ $message := complexMessage "buttons" $row1 "buttons" $row2 "buttons" $row3 }}
245246
{{ sendMessage nil $message }}
246247
```
247248

-6.21 KB
Loading
-27.7 KB
Loading
-31.5 KB
Loading

0 commit comments

Comments
 (0)