From d1212caeaa8816e11e3216dc73fe4c396a63524d Mon Sep 17 00:00:00 2001 From: ckohen Date: Sat, 19 Feb 2022 23:29:09 -0800 Subject: [PATCH] fix(messagepayload): don't set reply flags to target flags --- src/structures/MessagePayload.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/structures/MessagePayload.js b/src/structures/MessagePayload.js index 339b8f9abf69..7f890df1381a 100644 --- a/src/structures/MessagePayload.js +++ b/src/structures/MessagePayload.js @@ -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) {