Skip to content

Commit a488e25

Browse files
committed
reference: add menus and buttons key to complexMessage
Signed-off-by: Luca Zeuch <[email protected]>
1 parent f975aa6 commit a488e25

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

content/docs/reference/templates/functions.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1196,7 +1196,7 @@ for an example.
11961196
#### complexMessage
11971197

11981198
```yag
1199-
{{ $message := complexMessage [allowed_mentions] [content] [embed] [file] [filename] [reply] [silent] }}
1199+
{{ $message := complexMessage [allowed_mentions] [content] [embed] [file] [filename] [reply] [silent] [menus] [buttons] }}
12001200
```
12011201

12021202
Creates a complex message object for use in [sendMessage](#sendmessage) functions.
@@ -1212,6 +1212,8 @@ Creates a complex message object for use in [sendMessage](#sendmessage) function
12121212
- `filename`: the name of the file.
12131213
- `reply`: the ID of the message to reply to.
12141214
- `silent`: whether to suppress push and desktop notifications.
1215+
- `menus`: a single [select menu object](#cmenu).
1216+
- `buttons`: a slice of [button objects](#cbutton).
12151217

12161218
All of these keys are optional, but providing an empty content, file, or no embeds will result in no message being sent.
12171219

0 commit comments

Comments
 (0)