mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-14 10:33:30 +01:00
fix(MessagePayload): preserve existing flags when editing (#10766)
* fix(MessagePayload): preserve existing flags when editing * refactor: sync with #10765
This commit is contained in:
@@ -166,9 +166,7 @@ class MessagePayload {
|
|||||||
let flags;
|
let flags;
|
||||||
if (
|
if (
|
||||||
// eslint-disable-next-line eqeqeq
|
// eslint-disable-next-line eqeqeq
|
||||||
this.options.flags != null ||
|
this.options.flags != null
|
||||||
(this.isMessage && this.options.reply === undefined) ||
|
|
||||||
this.isMessageManager
|
|
||||||
) {
|
) {
|
||||||
flags = new MessageFlagsBitField(this.options.flags).bitfield;
|
flags = new MessageFlagsBitField(this.options.flags).bitfield;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user