Skip to content

Commit

Permalink
fix(MessagePayload): preserve existing flags when editing (#10766)
Browse files Browse the repository at this point in the history
* fix(MessagePayload): preserve existing flags when editing

* refactor: sync with #10765
  • Loading branch information
sdanialraza authored Feb 21, 2025
1 parent 595bded commit ebfd526
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions packages/discord.js/src/structures/MessagePayload.js
Original file line number Diff line number Diff line change
Expand Up @@ -166,9 +166,7 @@ class MessagePayload {
let flags;
if (
// eslint-disable-next-line eqeqeq
this.options.flags != null ||
(this.isMessage && this.options.reply === undefined) ||
this.isMessageManager
this.options.flags != null
) {
flags = new MessageFlagsBitField(this.options.flags).bitfield;
}
Expand Down

0 comments on commit ebfd526

Please # to comment.