fix(MessagePayload): v13 don't set reply flags to target flags (#7515)

This commit is contained in:
ckohen
2022-02-22 23:37:59 -08:00
committed by GitHub
parent 2b3db734df
commit 30baff7ecb

View File

@@ -148,7 +148,7 @@ class MessagePayload {
}
let flags;
if (this.isMessage || this.isMessageManager) {
if ((this.isMessage && typeof this.options.reply === 'undefined') || this.isMessageManager) {
// eslint-disable-next-line eqeqeq
flags = this.options.flags != null ? new MessageFlags(this.options.flags).bitfield : this.target.flags?.bitfield;
} else if (isInteraction && this.options.ephemeral) {