fix(MessagePayload): preserve existing flags when editing

backport #10766 djs
This commit is contained in:
Elysia
2025-07-08 19:57:05 +07:00
parent eb639d45d7
commit f0c47687b4

View File

@@ -154,12 +154,7 @@ class MessagePayload {
} }
let flags; let flags;
if ( if (this.options.flags != null) {
// eslint-disable-next-line eqeqeq
this.options.flags != null ||
(this.isMessage && typeof this.options.reply === 'undefined') ||
this.isMessageManager
) {
flags = new MessageFlags(this.options.flags).bitfield; flags = new MessageFlags(this.options.flags).bitfield;
} }