Skip to content

Commit 6701eb1

Browse files
committed
added forwards to the complexMessage Section
1 parent ea7310a commit 6701eb1

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

content/docs/reference/templates/functions.md

Lines changed: 13 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] [menus] [buttons] }}
1199+
{{ $message := complexMessage [allowed_mentions] [content] [embed] [file] [filename] [reply] [silent] [menus] [buttons] [forward] }}
12001200
```
12011201

12021202
Creates a complex message object for use in [sendMessage](#sendmessage) functions.
@@ -1214,6 +1214,7 @@ Creates a complex message object for use in [sendMessage](#sendmessage) function
12141214
- `silent`: whether to suppress push and desktop notifications.
12151215
- `menus`: a single [select menu object](#cmenu).
12161216
- `buttons`: a slice of [button objects](#cbutton).
1217+
- `forward`: must contain an sdict with a channel and message value
12171218

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

@@ -1241,6 +1242,17 @@ the triggering message and ping the author of that message, but suppress the res
12411242
{{ sendMessage nil $message }}
12421243
```
12431244

1245+
Example of a message forward:
1246+
1247+
```yag
1248+
{{ sendMessage nil (complexMessage
1249+
"forward" (sdict
1250+
"channel" .Channel.ID
1251+
"message" <messageID>
1252+
)
1253+
) }}
1254+
```
1255+
12441256
#### deleteAllMessageReactions
12451257

12461258
```yag

0 commit comments

Comments
 (0)