Skip to content

Commit c9ee39d

Browse files
committed
Merge branch 'master' of github.com:savage4618/yagpdb-docs-v2 into add-message-forwards
2 parents 6701eb1 + 0c34148 commit c9ee39d

File tree

1 file changed

+18
-1
lines changed

1 file changed

+18
-1
lines changed

content/docs/reference/templates/functions.md

Lines changed: 18 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] [forward] }}
1199+
{{ $message := complexMessage [allowed_mentions] [content] [embed] [file] [filename] [reply] [silent] [menus] [buttons] [sticker] [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+
- `sticker`: single sticker ID or a slice of sticker IDs
12171218
- `forward`: must contain an sdict with a channel and message value
12181219

12191220
All of these keys are optional, but providing an empty content, file, or no embeds will result in no message being sent.
@@ -1242,6 +1243,22 @@ the triggering message and ping the author of that message, but suppress the res
12421243
{{ sendMessage nil $message }}
12431244
```
12441245

1246+
Example for sending a sticker message:
1247+
1248+
```yag
1249+
{{ sendMessage nil ( complexMessage
1250+
"sticker" 749054660769218631
1251+
) }}
1252+
```
1253+
1254+
Example for sending multiple stickers in a message:
1255+
1256+
```yag
1257+
{{ sendMessage nil ( complexMessage
1258+
"sticker" ( cslice 749054660769218631 819128604311027752 1308344035563274291 )
1259+
) }}
1260+
```
1261+
12451262
Example of a message forward:
12461263

12471264
```yag

0 commit comments

Comments
 (0)