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

Add suppressEmbeds and unsuppressEmbeds functions for CC #1792

Draft
wants to merge 2 commits into
base: dev
Choose a base branch
from

Conversation

Aresiel
Copy link

@Aresiel Aresiel commented Dec 12, 2024

These functions enable the suppressing of embeds on messages not sent by YAGPDB via the SUPPRESS_EMBEDS flag.

The implementation should be functional if not for the bug discussed in bwmarrin/discordgo#1484 which is patched in bwmarrin/discordgo#1483. Discussion in the Discord was split on whether it is best to implement that solution in YAGPDB's discordgo library or to create an entirely new restapi function ChannelMessageEditFlags that handles specifically editing only flags. Look around here if context is wanted. I marked the PR as a draft until some conclusion is reached on this.

There has also been discussion of whether this should be part of complexMessageEdit, but little of a consensus, so it isn't so far.

I have tested it on messages sent by YAGPDB itself, both suppressing and unsuppressing embeds works.

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.

2 participants