@@ -1182,7 +1182,7 @@ Note that a message sent via [sendMessage](#sendmessage) is not the response---u
1182
1182
#### complexMessageEdit
1183
1183
1184
1184
``` yag
1185
- {{ $message := complexMessageEdit [allowed_mentions] [content] [embed] [silent] }}
1185
+ {{ $message := complexMessageEdit [allowed_mentions] [content] [embed] [silent] [suppress_embeds] }}
1186
1186
```
1187
1187
1188
1188
Creates a complex message object for use in [ editMessage] ( #editmessage ) or [ editMessageNoEscape] ( #editmessagenoescape ) .
@@ -1195,14 +1195,17 @@ Creates a complex message object for use in [editMessage](#editmessage) or [edit
1195
1195
- ` content ` : the new content for the message.
1196
1196
- ` embed ` : an embed object or a slice of up to 10 embed objects.
1197
1197
- ` silent ` : whether to suppress push and desktop notifications.
1198
+ - ` suppress_embeds ` : whether to suppress embeds in the message.
1198
1199
1199
1200
All of these keys are optional, but providing none of them will have no effect. See [ complexMessage] ( #complexmessage )
1200
1201
for an example.
1201
1202
1203
+ Setting ` suppress_embeds ` to ` false ` on a message with already suppressed embeds will not re-enable them.
1204
+
1202
1205
#### complexMessage
1203
1206
1204
1207
``` yag
1205
- {{ $message := complexMessage [allowed_mentions] [content] [embed] [file] [filename] [reply] [silent] [menus] [buttons] [sticker] [forward] }}
1208
+ {{ $message := complexMessage [allowed_mentions] [content] [embed] [file] [filename] [reply] [silent] [menus] [buttons] [sticker] [forward] [suppress_embeds] }}
1206
1209
```
1207
1210
1208
1211
Creates a complex message object for use in [ sendMessage] ( #sendmessage ) functions.
@@ -1222,6 +1225,7 @@ Creates a complex message object for use in [sendMessage](#sendmessage) function
1222
1225
- ` buttons ` : a slice of [ button objects] ( #cbutton ) .
1223
1226
- ` sticker ` : single sticker ID or a slice of sticker IDs
1224
1227
- ` forward ` : an sdict containing ` channel ` and ` message ` keys specifying the message to forward
1228
+ - ` suppress_embeds ` : whether to suppress embeds in the message.
1225
1229
1226
1230
All of these keys are optional, but providing an empty content, file, or no embeds will result in no message being sent.
1227
1231
0 commit comments