diff --git a/content/docs/reference/templates/functions.md b/content/docs/reference/templates/functions.md index cb7cb7c..34dce90 100644 --- a/content/docs/reference/templates/functions.md +++ b/content/docs/reference/templates/functions.md @@ -1196,7 +1196,7 @@ for an example. #### complexMessage ```yag -{{ $message := complexMessage [allowed_mentions] [content] [embed] [file] [filename] [reply] [silent] [menus] [buttons] [sticker] }} +{{ $message := complexMessage [allowed_mentions] [content] [embed] [file] [filename] [reply] [silent] [menus] [buttons] [sticker] [forward] }} ``` Creates a complex message object for use in [sendMessage](#sendmessage) functions. @@ -1215,6 +1215,7 @@ Creates a complex message object for use in [sendMessage](#sendmessage) function - `menus`: a single [select menu object](#cmenu). - `buttons`: a slice of [button objects](#cbutton). - `sticker`: single sticker ID or a slice of sticker IDs +- `forward`: an sdict containing `channel` and `message` keys specifying the message to forward All of these keys are optional, but providing an empty content, file, or no embeds will result in no message being sent. @@ -1258,6 +1259,17 @@ Example for sending multiple stickers in a message: ) }} ``` +Example of a message forward: + +```yag +{{ sendMessage nil (complexMessage + "forward" (sdict + "channel" .Channel.ID + "message" .Message.ID + ) +) }} +``` + #### deleteAllMessageReactions ```yag