mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-20 13:33:30 +01:00
fix(MessagePayload): preserve existing flags when editing (#10765)
* fix(MessagePayload): preserve existing flags when editing * refactor: request changes * fix: missing `.bitfield`
This commit is contained in:
@@ -150,9 +150,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.messageReference === undefined) ||
|
|
||||||
this.isMessageManager
|
|
||||||
) {
|
) {
|
||||||
flags = new MessageFlagsBitField(this.options.flags).bitfield;
|
flags = new MessageFlagsBitField(this.options.flags).bitfield;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user