@@ -1184,7 +1184,7 @@ Note that a message sent via [sendMessage](#sendmessage) is not the response---u
1184
1184
#### complexMessageEdit
1185
1185
1186
1186
``` yag
1187
- {{ $message := complexMessageEdit [allowed_mentions] [content] [embed] [silent] [suppress_embeds] }}
1187
+ {{ $message := complexMessageEdit [allowed_mentions] [content] [embed] [silent] [suppress_embeds] [is_components_v2] }}
1188
1188
```
1189
1189
1190
1190
Creates a complex message object for use in [ editMessage] ( #editmessage ) or [ editMessageNoEscape] ( #editmessagenoescape ) .
@@ -1198,6 +1198,7 @@ Creates a complex message object for use in [editMessage](#editmessage) or [edit
1198
1198
- ` embed ` : an embed object or a slice of up to 10 embed objects.
1199
1199
- ` silent ` : whether to suppress push and desktop notifications.
1200
1200
- ` suppress_embeds ` : whether to suppress embeds in the message.
1201
+ - ` is_components_v2 ` : whether the message uses components v2. Irreversibly switches the message to use components v2.
1201
1202
1202
1203
All of these keys are optional, but providing none of them will have no effect. See [ complexMessage] ( #complexmessage )
1203
1204
for an example.
@@ -1207,7 +1208,7 @@ Setting `suppress_embeds` to `false` on a message with already suppressed embeds
1207
1208
#### complexMessage
1208
1209
1209
1210
``` yag
1210
- {{ $message := complexMessage [allowed_mentions] [content] [embed] [file] [filename] [reply] [silent] [menus] [buttons] [sticker] [forward] [suppress_embeds] }}
1211
+ {{ $message := complexMessage [allowed_mentions] [content] [embed] [file] [filename] [reply] [silent] [menus] [buttons] [sticker] [forward] [suppress_embeds] [is_components_v2] }}
1211
1212
```
1212
1213
1213
1214
Creates a complex message object for use in [ sendMessage] ( #sendmessage ) functions.
@@ -1228,6 +1229,7 @@ Creates a complex message object for use in [sendMessage](#sendmessage) function
1228
1229
- ` sticker ` : single sticker ID or a slice of sticker IDs
1229
1230
- ` forward ` : an sdict containing ` channel ` and ` message ` keys specifying the message to forward
1230
1231
- ` suppress_embeds ` : whether to suppress embeds in the message.
1232
+ - ` is_components_v2 ` : whether the message uses components v2. Irreversibly switches the message to use components v2.
1231
1233
1232
1234
All of these keys are optional, but providing an empty content, file, or no embeds will result in no message being sent.
1233
1235
0 commit comments