Skip to content

Commit

Permalink
reference: add menus and buttons key to complexMessage
Browse files Browse the repository at this point in the history
Signed-off-by: Luca Zeuch <[email protected]>
  • Loading branch information
l-zeuch committed Nov 18, 2024
1 parent f975aa6 commit a488e25
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion content/docs/reference/templates/functions.md
Original file line number Diff line number Diff line change
Expand Up @@ -1196,7 +1196,7 @@ for an example.
#### complexMessage

```yag
{{ $message := complexMessage [allowed_mentions] [content] [embed] [file] [filename] [reply] [silent] }}
{{ $message := complexMessage [allowed_mentions] [content] [embed] [file] [filename] [reply] [silent] [menus] [buttons] }}
```

Creates a complex message object for use in [sendMessage](#sendmessage) functions.
Expand All @@ -1212,6 +1212,8 @@ Creates a complex message object for use in [sendMessage](#sendmessage) function
- `filename`: the name of the file.
- `reply`: the ID of the message to reply to.
- `silent`: whether to suppress push and desktop notifications.
- `menus`: a single [select menu object](#cmenu).
- `buttons`: a slice of [button objects](#cbutton).

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

Expand Down

0 comments on commit a488e25

Please sign in to comment.