| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
There was a problem hiding this comment.
I don't see any cleaner way to solve this flags issue.
I do have questions about that weird ternary expression though
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
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