From f0c47687b41f595a8033c43da6df05f5235020ae Mon Sep 17 00:00:00 2001 From: Elysia <71698422+aiko-chan-ai@users.noreply.github.com> Date: Tue, 8 Jul 2025 19:57:05 +0700 Subject: [PATCH] fix(MessagePayload): preserve existing flags when editing backport #10766 djs --- src/structures/MessagePayload.js | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/structures/MessagePayload.js b/src/structures/MessagePayload.js index 77b3277..16a7e97 100644 --- a/src/structures/MessagePayload.js +++ b/src/structures/MessagePayload.js @@ -154,12 +154,7 @@ class MessagePayload { } let flags; - if ( - // eslint-disable-next-line eqeqeq - this.options.flags != null || - (this.isMessage && typeof this.options.reply === 'undefined') || - this.isMessageManager - ) { + if (this.options.flags != null) { flags = new MessageFlags(this.options.flags).bitfield; }