Skip to content

Commit

Permalink
fix(MessagePayload): v13 don't set reply flags to target flags (#7515)
Browse files Browse the repository at this point in the history
  • Loading branch information
ckohen committed Feb 23, 2022
1 parent 2b3db73 commit 30baff7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/structures/MessagePayload.js
Expand Up @@ -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) {
Expand Down

0 comments on commit 30baff7

Please sign in to comment.