Skip to content

Commit ebfd526

Browse files
authored
fix(MessagePayload): preserve existing flags when editing (#10766)
* fix(MessagePayload): preserve existing flags when editing * refactor: sync with #10765
1 parent 595bded commit ebfd526

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

packages/discord.js/src/structures/MessagePayload.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -166,9 +166,7 @@ class MessagePayload {
166166
let flags;
167167
if (
168168
// eslint-disable-next-line eqeqeq
169-
this.options.flags != null ||
170-
(this.isMessage && this.options.reply === undefined) ||
171-
this.isMessageManager
169+
this.options.flags != null
172170
) {
173171
flags = new MessageFlagsBitField(this.options.flags).bitfield;
174172
}

0 commit comments

Comments
 (0)