fix(MessagePayload): preserve existing flags when editing
backport #10766 djs
This commit is contained in:
@@ -154,12 +154,7 @@ class MessagePayload {
|
|||||||
}
|
}
|
||||||
|
|
||||||
let flags;
|
let flags;
|
||||||
if (
|
if (this.options.flags != null) {
|
||||||
// eslint-disable-next-line eqeqeq
|
|
||||||
this.options.flags != null ||
|
|
||||||
(this.isMessage && typeof this.options.reply === 'undefined') ||
|
|
||||||
this.isMessageManager
|
|
||||||
) {
|
|
||||||
flags = new MessageFlags(this.options.flags).bitfield;
|
flags = new MessageFlags(this.options.flags).bitfield;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user