Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added sticker info to complexMessage function #57

Merged
merged 1 commit into from
Dec 1, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 18 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] }}
{{ $message := complexMessage [allowed_mentions] [content] [embed] [file] [filename] [reply] [silent] [menus] [buttons] [sticker] }}
```

Creates a complex message object for use in [sendMessage](#sendmessage) functions.
Expand All @@ -1214,6 +1214,7 @@ Creates a complex message object for use in [sendMessage](#sendmessage) function
- `silent`: whether to suppress push and desktop notifications.
- `menus`: a single [select menu object](#cmenu).
- `buttons`: a slice of [button objects](#cbutton).
- `sticker`: single sticker ID or a slice of sticker IDs

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 @@ -1241,6 +1242,22 @@ the triggering message and ping the author of that message, but suppress the res
{{ sendMessage nil $message }}
```

Example for sending a sticker message:

```yag
{{ sendMessage nil ( complexMessage
"sticker" 749054660769218631
) }}
```

Example for sending multiple stickers in a message:

```yag
{{ sendMessage nil ( complexMessage
"sticker" ( cslice 749054660769218631 819128604311027752 1308344035563274291 )
) }}
```

#### deleteAllMessageReactions

```yag
Expand Down