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

templates: add message forwarding #1764

Merged
merged 5 commits into from
Nov 20, 2024

Conversation

SoggySaussages
Copy link
Contributor

Adds message forwarding capability to complexMessage. Cannot be done in channels YAGPDB doesn't have read message
perms in, or a channel outside the guild. Effectively no different from the message link preview CC but utilizes Discord's UI,
additionally removes the need to parse a message link and get the message, nor build your own embed or other means of
providing a message timestamp, link, and indication that it was a forwarded message. It also looks neat.

Signed-off-by: SoggySaussages vmdmaharaj@gmail.com

Signed-off-by: SoggySaussages <vmdmaharaj@gmail.com>
Signed-off-by: SoggySaussages <vmdmaharaj@gmail.com>
@SoggySaussages SoggySaussages changed the base branch from master to dev November 15, 2024 11:58
@ashishjh-bst
Copy link
Contributor

Can you add example template too please?

@galen8183
Copy link
Contributor

Can you add example template too please?

Here's an example:

{{ sendMessage nil (complexMessage
    "forward" (sdict
        "channel" .Channel.ID
        "message" <messageID>
    )
) }}

image

@SoggySaussages
Copy link
Contributor Author

Can you add example template too please?

Here's an example:

{{ sendMessage nil (complexMessage
    "forward" (sdict
        "channel" .Channel.ID
        "message" <messageID>
    )
) }}

image

I'm SoggySaussages and I approve this message.

@ashishjh-bst ashishjh-bst merged commit 3f11dde into botlabs-gg:dev Nov 20, 2024
0 of 2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants