FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

fix suppressing embeds from other users by akiraveliara · Pull Request #2476 · DSharpPlus/DSharpPlus · GitHub

fix suppressing embeds from other users - #2476

Merged
akiraveliara merged 2 commits into
masterfrom
aki/fix-suppressing-embeds-on-non-user-messages
Sep 23, 2026
Merged

akiraveliara merged 2 commits into
masterfrom
aki/fix-suppressing-embeds-on-non-user-messages

Conversation

Copy link
Copy Markdown
Member

previously in #2467 and #2474, message flag and embed edit behaviour were changed to correctly edit messages from the current user, retaining message flags set on them and correctly handling the weird default value for embeds respectively.

this behaviour is, by some devilry, incorrect for editing user messages, where a different default value for embeds applies and where only the SuppressEmbeds flag (1 << 2) may be set, or else discord will interpret it as an attempt to edit another user's message and fail, even if it is simply retaining the provided flags

this pull request fixes that by hardwiring the behaviour for suppressing embeds from other users. it's probably not ideal but i don't really know how else to make this work

  • This pull request did not involve AI in any way
  • All features in this pull request were tested.

akiraveliara added this to the v5.0 milestone Sep 23, 2026

Naamloos left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

I don't see any cleaner way to solve this flags issue.

I do have questions about that weird ternary expression though

akiraveliara merged commit e97cb03 into master Sep 23, 2026
1 check passed
akiraveliara deleted the aki/fix-suppressing-embeds-on-non-user-messages branch September 23, 2026 15:27
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants


Back | FazBrowse Home | New Git URL