Skip to content

Commit

Permalink
Merge branch 'botlabs-gg:master' into cron
Browse files Browse the repository at this point in the history
  • Loading branch information
SoggySaussages authored Dec 2, 2024
2 parents 23da7ce + d5e2778 commit b5c8885
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
14 changes: 13 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] [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.
Expand All @@ -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.

Expand Down Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion layouts/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ <h2 id="quick-links" class="text-center">Quick Links</h2>

<div class="card-nav d-flex flex-column flex-sm-row">
{{ $opts := dict
"title" "Tools :& Utilities"
"title" "Tools & Utilities"
"icon" "outline/tools"
"content" `
- [Self-assignable roles](/docs/tools-and-utilities/self-assignable-roles/)
Expand Down

0 comments on commit b5c8885

Please sign in to comment.